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="bookmark_add — simplified trace (2026-07-09, core 5.117 / backend 5.30)
trace 16fb7eb0 · total 134.6 ms · key cost: add bookmark = 120.59 ms (90%)";
  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="bookmark_add() entry\nMCP dispatch → tool.bookmark_add\n@3ms\n2.97 ms"];
    "done" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="result returned\n@135ms\n1.41 ms"];
  }
  subgraph "cluster_backend" {
    label="Backend (yadgar-backend)";
    style=filled;
    bgcolor="#fbf0ea";
    color="#b5744a";
    fontcolor="#7a4620";
    fontname="Helvetica-Bold";
    "s0" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="add bookmark\nbookmarks.bookmark_add\n@10ms\n120.59 ms"];
  }
  "entry" -> "s0" [color="#333333", style="solid", label="1"];
  "s0" -> "done" [color="#333333", style="solid", label="2"];
}
