\begin{tikzpicture}[node distance=1.6cm, >=stealth]
\tikzstyle{stage}=[draw, rounded corners, align=center, minimum width=3.1cm, minimum height=1cm]
\node[stage] (a) {1. MCP Search\\doctrine, APIs, papers};
\node[stage, right of=a, xshift=2.3cm] (b) {2. Corpus Assembly\\glossary, ontology, URLs};
\node[stage, right of=b, xshift=2.3cm] (c) {3. Research Cluster\\claims, gaps, questions};
\node[stage, right of=c, xshift=2.3cm] (d) {4. Evidence Ledger\\trace, score, source class};
\node[stage, below of=a, yshift=-1.8cm] (e) {5. Draft Paper\\voice, structure, claims};
\node[stage, right of=e, xshift=2.3cm] (f) {6. Review Gates\\citations, figures, links};
\node[stage, right of=f, xshift=2.3cm] (g) {7. Export Package\\PDF, HTML, TeX, JSON-LD};
\node[stage, right of=g, xshift=2.3cm] (h) {8. Human Decision\\approve, hold, return};
\node[stage, below of=f, yshift=-1.5cm, minimum width=7cm] (i) {Self-learning loop\\updates retrieval rules, gates, citations, and figure checks};
\draw[->] (a) -- (b);
\draw[->] (b) -- (c);
\draw[->] (c) -- (d);
\draw[->] (d.south) |- (e.north);
\draw[->] (e) -- (f);
\draw[->] (f) -- (g);
\draw[->] (g) -- (h);
\draw[->, dashed] (h.south) |- (i.east);
\end{tikzpicture}
