digraph flow {
  rankdir="TB";
  newrank=true;
  compound=true;
  nodesep=0.35;
  ranksep=0.55;
  graph [fontname="Helvetica", fontsize=11, labelloc="t"];
  node  [fontname="Helvetica", fontsize=10];
  edge  [fontname="Helvetica", fontsize=9];
  label="wiki_read — simplified trace (2026-07-09, core 5.117 / backend 5.30)
trace 3686bfac · total 30.5 ms · key cost: HTTP POST to backend (in get_wiki_page_by_slug_directory_branch) = 22.85 ms (75%)";
  subgraph "cluster_core" {
    label="Core process (yadgar-core)";
    style=filled;
    bgcolor="#eef4fb";
    color="#4a72a8";
    fontcolor="#26456b";
    fontname="Helvetica-Bold";
    "entry" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="wiki_read() entry\nMCP dispatch → tool.wiki_read\n@3.0ms\n2.96 ms"];
    "s0" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="detect git branch (cached)\nproject._detect_branch_cached\n@3.1ms\n0.54 ms"];
    "s1" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="detect default branch (cached)\nproject._get_default_branch_cached\n@3.8ms\n0.43 ms"];
    "s2" [shape="box", style="rounded,filled", fillcolor="#fce3d6", label="HTTP POST to backend (in get_wiki_page_by_slug_directory_branch)\nPOST\n@5.2ms\n22.85 ms"];
    "done" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="result returned\n@30.5ms\n1.34 ms"];
  }
  "entry" -> "s0" [color="#333333", style="solid", label="1"];
  "s0" -> "s1" [color="#333333", style="solid", label="2"];
  "s1" -> "s2" [color="#333333", style="solid", label="3"];
  "s2" -> "done" [color="#333333", style="solid", label="4"];
}
