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="anchor — simplified trace (2026-07-09, core 5.117 / backend 5.30)
trace 40fa8cbd · total 7 ms · key cost: validate anchor inputs = 0.57 ms (8%)\nR3 enqueue-only boundary";
  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="anchor() entry\nMCP dispatch → tool.anchor\n@4.0ms\n3.96 ms"];
    "s0" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="validate anchor inputs\nmisc._validate_anchor_inputs\n@4.1ms\n0.57 ms"];
    "s1" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="detect git branch (cached)\nproject._detect_branch_cached\n@4.7ms\n0.46 ms"];
    "s2" [shape="box", style="rounded,filled", fillcolor="#fce3d6", label="file-queue enqueue\nFileQueue.enqueue\n@5.3ms\n0.24 ms"];
    "done" [shape="box", style="rounded,filled", fillcolor="#dbe9fb", label="result returned\n@7.0ms\n1.41 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"];
}
