{
  "ok": true,
  "version": "10.1",
  "doctrine": {
    "ts": "2026-10-05T14:28:10.717132+00:00",
    "doctrine": "10.1",
    "observe_ok": true,
    "circuit_breaker": false,
    "autonomy_effective": 1,
    "autonomy_policy": 4,
    "domains": {
      "cgnat_fail_open": "HEALTHY",
      "speedshield": "HEALTHY",
      "security_stack": "HEALTHY",
      "olt_ftth": "UNKNOWN",
      "backbone_path": "HEALTHY",
      "monitoramento": "HEALTHY",
      "alertas": "HEALTHY"
    },
    "fail_open": {
      "ok": true,
      "list_own": 0,
      "list_active": 0,
      "auto_ban": false,
      "circuit_open": true,
      "error": null
    },
    "qoe": {
      "score": 100,
      "grade": "A+"
    },
    "think_security": false,
    "changed": {},
    "customer_first": true,
    "telegram_noise": false,
    "note": "Internet do cliente > mitigação perfeita. Sem prova não declarar pronto."
  },
  "name": "Network Brain — Ápice Speed Fibra",
  "ts": "2026-10-05T14:28:17.235587+00:00",
  "autonomy_level": 1,
  "kill_switch": false,
  "qoe": {
    "score": 100,
    "grade": "A+",
    "target": 70,
    "issues": [],
    "gpon_online": null,
    "gpon_offline": null,
    "gpon_total": null,
    "message": "QoE 100/100 (A+) — missão: internet incomparável para o cliente"
  },
  "mission": "Internet incomparável para o cliente Speed Fibra — estabilidade, segurança, latência, TV e DNS.",
  "link_capacity_gbps": 10,
  "gpon": {},
  "security_score": 100,
  "security_degraded": [],
  "speedshield_active": 0.0,
  "fleet": {
    "score": 52,
    "bad_count": 4
  },
  "prometheus": {
    "up": 112,
    "total": 112
  },
  "cycle": {
    "security_decisions": 0,
    "auto_blocks": 0,
    "proposals": 0,
    "improvements_touched": 2,
    "thinkers": {},
    "gpu_path": 0,
    "hub_fallback": 0
  },
  "open_improvements": [
    {
      "key": "5cf5428e4196",
      "title": "Path Health indisponível",
      "detail": "sf-path sem status: <urlopen error [Errno 111] Connection refused>",
      "area": "routing",
      "priority": "P2",
      "status": "open",
      "created_at": "2026-09-17T10:30:21.471518+00:00",
      "last_seen": "2026-09-17T13:37:04.093752+00:00",
      "hits": 26
    },
    {
      "key": "5248ada55d2b",
      "title": "Hosts da frota com problema",
      "detail": "bad=1 score=87",
      "area": "fleet",
      "priority": "P2",
      "status": "open",
      "created_at": "2026-08-28T06:03:59.349116+00:00",
      "last_seen": "2026-10-05T14:28:10.853278+00:00",
      "hits": 22178
    },
    {
      "key": "b5beeaee9033",
      "title": "Trânsito/path full-table degradado",
      "detail": "path=full-table overall=crit. NÃO auto-BGP: validar peer CONECT, sessão e full-table antes de mudança de rota.",
      "area": "routing",
      "priority": "P1",
      "status": "open",
      "created_at": "2026-08-28T00:12:34.648026+00:00",
      "last_seen": "2026-09-30T18:26:11.288137+00:00",
      "hits": 252
    },
    {
      "key": "3d74bb5d06c6",
      "title": "Trânsito/path tto degradado",
      "detail": "path=tto overall=crit. NÃO auto-BGP: validar peer CONECT, sessão e full-table antes de mudança de rota.",
      "area": "routing",
      "priority": "P1",
      "status": "open",
      "created_at": "2026-08-28T00:12:34.643216+00:00",
      "last_seen": "2026-09-23T08:20:15.875779+00:00",
      "hits": 26
    },
    {
      "key": "f9c53d742fee",
      "title": "Path Health CRÍTICO — investigar rota/internet",
      "detail": "overall=crit summary={'total': 46, 'ok': 45, 'warn': 0, 'crit': 1, 'down': 0} route_bad={'internet': 'crit'} bad=[{'id': 'http_cf', 'path': 'internet', 'severity': 'crit', 'severity_raw': 'crit', 'label': 'Cloudflare trace'}]",
      "area": "routing",
      "priority": "P1",
      "status": "open",
      "created_at": "2026-08-27T21:40:01.705486+00:00",
      "last_seen": "2026-10-02T22:48:40.453237+00:00",
      "hits": 3171
    },
    {
      "key": "5cd390fd6021",
      "title": "Path Health em aviso (latência/perda)",
      "detail": "overall=warn summary={'total': 46, 'ok': 45, 'warn': 1, 'crit': 0, 'down': 0} route_bad={'tto': 'warn'} bad=[{'id': 'conect_tto_peer', 'path': 'tto', 'severity': 'warn', 'severity_raw': 'warn', 'label': 'CONECT TTO peer'}]",
      "area": "routing",
      "priority": "P2",
      "status": "open",
      "created_at": "2026-08-27T13:38:55.703905+00:00",
      "last_seen": "2026-10-05T13:10:27.084906+00:00",
      "hits": 17
    },
    {
      "key": "f5ff6c440bd6",
      "title": "Prometheus targets down",
      "detail": "2 targets — recuperar exporters/hosts antes de impacto em cliente.",
      "area": "observability",
      "priority": "P2",
      "status": "open",
      "created_at": "2026-08-26T10:24:06.021009+00:00",
      "last_seen": "2026-10-03T06:44:06.438038+00:00",
      "hits": 3023
    },
    {
      "key": "9d5c508d1fde",
      "title": "Stack de segurança degradada",
      "detail": "degraded=['platform', 'prometheus'] score=75",
      "area": "security",
      "priority": "P1",
      "status": "open",
      "created_at": "2026-08-26T09:25:28.760680+00:00",
      "last_seen": "2026-10-04T14:59:12.579978+00:00",
      "hits": 6293
    },
    {
      "key": "f9c53d742fee",
      "title": "Path Health CRÍTICO — investigar rota/internet",
      "detail": "overall=down summary={'total': 46, 'ok': 45, 'warn': 0, 'crit': 0, 'down': 1} route_bad={'internet': 'down'} bad=[{'id': 'udp_dns_google', 'path': 'internet', 'severity': 'down', 'severity_raw': 'down', 'label': 'UDP DNS Google'}]",
      "area": "routing",
      "priority": "P1",
      "status": "resolved",
      "created_at": "2026-08-26T07:59:01.476809+00:00",
      "last_seen": "2026-08-26T07:59:01.476836+00:00",
      "hits": 1,
      "state": "resolved",
      "resolved_at": "2026-08-26T08:29:26.673706+00:00",
      "resolved_note": "path_health overall=ok 46/46 (2026-08-26). Ticket stale. Sem BGP."
    },
    {
      "key": "da2e60197c92",
      "title": "QoE crítico — investigar causa (não restart cego)",
      "detail": "score=43 grade=D issues=['offline_ratio=15.93%', 'crit_rx=72', \"security_degraded=['prometheus']\", 'prom_down=3']",
      "area": "qoe",
      "priority": "P2",
      "status": "resolved",
      "created_at": "2026-08-25T16:59:39.603761+00:00",
      "last_seen": "2026-08-26T07:40:39.651208+00:00",
      "hits": 396,
      "state": "resolved",
      "resolved_at": "2026-08-26T07:47:31.069381+00:00",
      "resolved_note": "QoE alinhada ao Plantão 71 C; não é incidente de rua"
    },
    {
      "key": "5248ada55d2b",
      "title": "Hosts da frota com problema",
      "detail": "bad=1 score=85",
      "area": "fleet",
      "priority": "P2",
      "status": "resolved",
      "created_at": "2026-08-17T17:06:19.584602+00:00",
      "last_seen": "2026-08-18T12:00:59.704695+00:00",
      "hits": 256,
      "state": "resolved",
      "resolved_at": "2026-08-26T07:47:31.069381+00:00",
      "resolved_note": "fleet bad_count=0 score=92 — ticket stale"
    },
    {
      "key": "f5ff6c440bd6",
      "title": "Prometheus targets down",
      "detail": "2 targets — recuperar exporters/hosts antes de impacto em cliente.",
      "area": "observability",
      "priority": "P2",
      "status": "resolved",
      "created_at": "2026-08-14T09:14:47.387180+00:00",
      "last_seen": "2026-08-26T07:47:19.132130+00:00",
      "hits": 6793,
      "state": "resolved",
      "resolved_at": "2026-08-26T07:47:31.069381+00:00",
      "resolved_note": "node-exporter .157 e .184 no ar (scrape 200) — 2026-08-26"
    },
    {
      "key": "9d5c508d1fde",
      "title": "Stack de segurança degradada",
      "detail": "degraded=['speedshield'] score=75",
      "area": "security",
      "priority": "P1",
      "status": "resolved",
      "created_at": "2026-08-14T09:00:11.081689+00:00",
      "last_seen": "2026-08-26T07:40:28.509238+00:00",
      "hits": 5460,
      "state": "resolved",
      "resolved_at": "2026-08-26T07:47:31.069381+00:00",
      "resolved_note": "Shield HEALTHY, scorecard 10/10, list_own=0 — ticket stale"
    },
    {
      "key": "9d5c508d1fde",
      "title": "Stack de segurança degradada",
      "detail": "degraded=['speedshield'] score=75",
      "area": "security",
      "priority": "P1",
      "status": "resolved",
      "created_at": "2026-08-14T07:32:26.644092+00:00",
      "last_seen": "2026-08-14T07:37:58.491289+00:00",
      "hits": 2,
      "state": "resolved",
      "resolved_at": "2026-08-14T07:54:14.745794+00:00",
      "resolution": "2026-08-14 re-diag: Guardian security_stack score=100 degraded=[]; SpeedShield stable + RTBH Established; item era residual pós-reboot .149. Guardian wg-sp-cc removido dos defaults."
    },
    {
      "key": "9d5c508d1fde",
      "title": "Stack de segurança degradada",
      "detail": "degraded=['speedshield', 'aspeedguard', 'platform'] score=40",
      "area": "security",
      "priority": "P1",
      "status": "resolved",
      "created_at": "2026-08-14T07:18:43.156544+00:00",
      "last_seen": "2026-08-14T07:21:02.876700+00:00",
      "hits": 2,
      "state": "resolved",
      "resolved_at": "2026-08-14T07:23:10.916801+00:00",
      "resolution": "2026-08-14 madrugada: SpeedShield stable 12G, Suricata 157, soft prune, Platform stable=true"
    }
  ],
  "path_health": {
    "ok": true,
    "overall": "ok",
    "summary": {
      "total": 46,
      "ok": 44,
      "warn": 2,
      "crit": 0,
      "down": 0
    },
    "paths": {
      "app": {
        "overall": "warn",
        "total": 3,
        "ok": 1,
        "warn": 2,
        "crit": 0,
        "down": 0,
        "ids": [
          "gpon",
          "gpon_web",
          "thr_local_tst"
        ]
      },
      "capacity": {
        "overall": "ok",
        "total": 1,
        "ok": 1,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "thr_cf_200k"
        ]
      },
      "core": {
        "overall": "ok",
        "total": 5,
        "ok": 5,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "dns_aspeed",
          "hub_noc",
          "ccr_core",
          "speedtest_local",
          "udp_dns_isp"
        ]
      },
      "full-table": {
        "overall": "ok",
        "total": 1,
        "ok": 1,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "conect_full_v4"
        ]
      },
      "gaming": {
        "overall": "ok",
        "total": 12,
        "ok": 12,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "steam_tls",
          "steam_cdn",
          "discord_tls",
          "discord_gw",
          "riot_tls",
          "epic_tls",
          "roblox_tls",
          "xbox_tls",
          "psn_tls",
          "dns_discord",
          "udp_game_discord",
          "udp_game_steam"
        ]
      },
      "internet": {
        "overall": "ok",
        "total": 6,
        "ok": 6,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "dns_google",
          "dns_cf",
          "http_google",
          "http_cf",
          "udp_dns_google",
          "udp_dns_cf"
        ]
      },
      "nanuque": {
        "overall": "ok",
        "total": 1,
        "ok": 1,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "conect_nan_peer"
        ]
      },
      "social": {
        "overall": "ok",
        "total": 6,
        "ok": 6,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "instagram_tls",
          "whatsapp_tls",
          "fb_tls",
          "fbcdn_tls",
          "x_tls",
          "dns_instagram"
        ]
      },
      "tto": {
        "overall": "ok",
        "total": 1,
        "ok": 1,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "conect_tto_peer"
        ]
      },
      "video": {
        "overall": "ok",
        "total": 10,
        "ok": 10,
        "warn": 0,
        "crit": 0,
        "down": 0,
        "ids": [
          "yt_tls",
          "netflix_tls",
          "netflix_cdn",
          "twitch_tls",
          "disney_tls",
          "prime_tls",
          "tiktok_tls",
          "globoplay_tls",
          "dns_netflix",
          "dns_youtube"
        ]
      }
    },
    "route_bad": {},
    "bad_targets": [],
    "ts": "2026-10-05T14:27:50.502393+00:00",
    "version": "1.3",
    "ip": "45.65.135.189",
    "hub_snapshot": {
      "ops_ok": true,
      "brain_qoe": 100,
      "brain_grade": "A+",
      "conect": {
        "ok": true,
        "summary": "CONECT TTO DOWN há ~540s (acima de 90s). Path NAN ainda OK — failover ativo, mas demora atípica.",
        "scenario": "single_down_timeout",
        "transit_summary": {
          "bgp_up": 6,
          "bgp_total": 6,
          "healthy": false,
          "sites_ok": 1,
          "sites_total": 2
        },
        "tto": {
          "healthy": false,
          "bgp_up": 3,
          "bgp_total": 3,
          "name": "Teófilo Otoni"
        },
        "nan": {
          "healthy": true,
          "bgp_up": 3,
          "bgp_total": 3,
          "name": "Nanuque"
        },
        "down_sites": [
          "TTO"
        ],
        "quarantine_active": null
      }
    }
  },
  "last_decisions": [],
  "links": {
    "noc": "https://noc.aspeednet.com.br/cerebro/",
    "avisos": "https://noc.aspeednet.com.br/avisos/",
    "vms": "https://noc.aspeednet.com.br/vms/",
    "speedshield": "https://noc.aspeednet.com.br/speedshield/",
    "intel_example": "https://noc.aspeednet.com.br/brain-api/intel/1.1.1.1"
  },
  "intel": {
    "intel_dir": "/opt/speedfibra-brain/intel",
    "lists": {
      "cached": true,
      "loaded_at": 1791210199.32156
    },
    "meta": {
      "updated_at": "2026-10-05T13:37:18.283610+00:00",
      "sources": {
        "firehol_level1.netset": {
          "ok": true,
          "bytes": 74009,
          "url": "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/firehol_level1.netset"
        },
        "spamhaus_drop.txt": {
          "ok": true,
          "bytes": 45655,
          "url": "https://www.spamhaus.org/drop/drop.txt"
        },
        "spamhaus_edrop.txt": {
          "ok": true,
          "bytes": 277,
          "url": "https://www.spamhaus.org/drop/edrop.txt"
        },
        "blocklist_de.ipset": {
          "ok": true,
          "bytes": 109807,
          "url": "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/blocklist_de.ipset"
        },
        "cloudflare_v4.txt": {
          "ok": true,
          "bytes": 230,
          "url": "https://www.cloudflare.com/ips-v4"
        },
        "cloudflare_v6.txt": {
          "ok": true,
          "bytes": 104,
          "url": "https://www.cloudflare.com/ips-v6"
        }
      },
      "cdn_providers": [
        "Cloudflare",
        "Google",
        "Meta",
        "Fastly",
        "Akamai",
        "Amazon-CloudFront",
        "Microsoft-Azure",
        "GitHub",
        "Netflix",
        "Twitch",
        "Discord"
      ],
      "link_capacity_note": "10G uplink — limiares de ataque calibrados no policy.yaml"
    },
    "cache_age_sec": 297
  }
}