\documentclass[10pt]{article}

\usepackage{kungfu-whitepaper}

\title{Kungfu: Continuity for Agent Work}
\author{Keren Dong\\Kungfu Origin Technology Limited\\\href{mailto:keren.dong@kungfu.link}{keren.dong@kungfu.link}}
\date{White Paper Draft: July 2026}

\begin{document}

\begin{titlepage}
\pagecolor{Ink}
\thispagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
  \fill[Jade] (current page.north east) rectangle
    ([xshift=-0.16in]current page.south east);
  \draw[Cyan,opacity=0.22,line width=1.2pt]
    ([xshift=-0.9in,yshift=-1.0in]current page.north east)
    .. controls ([xshift=-2.7in,yshift=-2.2in]current page.north east)
    and ([xshift=-1.2in,yshift=2.0in]current page.south east)
    .. ([xshift=-3.4in,yshift=0.8in]current page.south east);
  \draw[Jade,opacity=0.13,line width=30pt]
    ([xshift=-0.45in,yshift=-0.9in]current page.north east) --
    ([xshift=-3.0in,yshift=0.7in]current page.south east);
\end{tikzpicture}

{\sffamily\bfseries\footnotesize\color{Cyan}
KUNGFU WHITE PAPER \textperiodcentered{} JULY 2026}\par
\vspace{0.62in}

{\sffamily\bfseries\fontsize{39}{41}\selectfont\color{White}
Kungfu:\par
Continuity for\par
Agent Work\par}

\vspace{0.18in}
{\color{Jade}\rule{0.95in}{3pt}}\par
\vspace{0.18in}
{\sffamily\fontsize{14}{18}\selectfont\color{PaperCool}
A local-first product and runtime for Projects, Work, and replaceable Agents.\par}

\vspace{0.27in}
\begin{tikzpicture}[node distance=0.12in]
  \tikzset{
    covernode/.style={rounded corners=2pt,draw=Cyan!35,fill=InkSoft,
      text=White,minimum width=1.23in,minimum height=0.41in,
      align=center,font=\sffamily\bfseries\scriptsize},
    coverarrow/.style={-{Stealth[length=4pt]},draw=Jade,line width=1pt}
  }
  \node[covernode] (a) {Chat ends};
  \node[covernode,right=of a] (b) {Work remains};
  \node[covernode,right=of b] (c) {Fresh Agent};
  \node[covernode,right=of c] (d) {Independent review};
  \draw[coverarrow] (a) -- (b);
  \draw[coverarrow] (b) -- (c);
  \draw[coverarrow] (c) -- (d);
\end{tikzpicture}

\vspace{0.25in}
{\sffamily\bfseries\fontsize{11.5}{15}\selectfont\color{White}
Work should not disappear when a chat ends, restart when an Agent changes, or
become complete merely because a process exits. Kungfu gives Work durable
identity, governed evidence, bounded authority, and an independently
reviewable path to continuation and completion.\par}

\vspace{0.22in}
\begin{minipage}[t]{0.485\textwidth}
  \begin{darkcard}
    {\sffamily\bfseries\footnotesize\color{Cyan}AUDIENCE}\par
    {\scriptsize\color{PaperCool}Agent users, developers, operators,
    researchers, and early product evaluators.}
  \end{darkcard}
\end{minipage}
\hfill
\begin{minipage}[t]{0.485\textwidth}
  \begin{darkcard}
    {\sffamily\bfseries\footnotesize\color{Cyan}PRODUCT FRAME}\par
    {\scriptsize\color{PaperCool}Project, Work, and Agent form the complete
    first layer; deeper authority appears only when needed.}
  \end{darkcard}
\end{minipage}

\vspace{0.08in}
\begin{minipage}[t]{0.485\textwidth}
  \begin{darkcard}
    {\sffamily\bfseries\footnotesize\color{Cyan}PHILOSOPHY}\par
    {\scriptsize\color{PaperCool}Facts must not drift, trust must start from
    facts, and cooperation must start from trusted value.}
  \end{darkcard}
\end{minipage}
\hfill
\begin{minipage}[t]{0.485\textwidth}
  \begin{darkcard}
    {\sffamily\bfseries\footnotesize\color{Cyan}PROOF PATH}\par
    {\scriptsize\color{PaperCool}Agent Work Lab, exact artifact evidence,
    real Project continuity, and explicit public claim boundaries.}
  \end{darkcard}
\end{minipage}

\vfill
\begin{tabularx}{\textwidth}{@{}Xr@{}}
  {\sffamily\color{PaperCool}Keren Dong\par
   \footnotesize Kungfu Origin Technology Limited} &
  {\sffamily\footnotesize\color{Cyan}
   \href{https://kungfu.tech}{https://kungfu.tech}}
\end{tabularx}
\end{titlepage}
\pagecolor{Paper}

\input{sections/00-executive-summary}

\input{sections/01-problem}
\input{sections/02-thesis}
\input{sections/03-principles}
\input{sections/04-architecture}
\input{sections/05-roadmap}
\input{sections/06-validation}
\input{sections/07-ecosystem}
\input{sections/08-risks}
\input{sections/09-conclusion}

\nocite{kungfuRuntime,kungfuBuildchain}
\begingroup
\small
\setlength{\parskip}{0.2em}
\bibliographystyle{plain}
\bibliography{references}
\endgroup

\end{document}
