TeX 93.9%
Python 6%
1\begin{table}[htbp]2\centering3\caption{Design rationale. Each mechanism is listed with the constant it uses at the audited4commit, the property it is intended to secure, and the measurement in the protocol of5Section~\ref{subsec:protocol} that would test it. No measurement has been made.}6\label{tab:rationale}7\begin{threeparttable}8\footnotesize9\begin{tabular}{@{}>{\raggedright\arraybackslash}p{3.4cm}>{\raggedright\arraybackslash}p{2.7cm}>{\raggedright\arraybackslash}p{4.3cm}>{\raggedright\arraybackslash}p{4.6cm}@{}}10\toprule11Mechanism & Constant & Intended property & Would be measured by \\12\midrule13SSE streaming (\S\ref{subsec:transport}) & flush per event & perceived latency decoupled from total latency & time to first token vs.\ end-to-end latency \\14Recursive loop (\S\ref{subsec:loop}) & no depth bound & tool-use/tool-result pairing preserved across turns & protocol errors per 1{,}000 calls; recursion depth distribution \\15Batched execution (\S\ref{subsec:batching}) & 5 per batch; 500\,ms & bounded provider load without altering what the model sees & rate-limit errors and latency at batch sizes 1, 5, $\infty$ \\16Prompt routing (\S\ref{subsec:routing}) & 1--2 / 3--5 / 10+ tools & effort proportional to request complexity & tool-selection precision and recall by request class \\17Per-result truncation (\S\ref{subsec:context}) & 3{,}000 / 15{,}000 chars & verbose results do not crowd the window & accuracy loss on tasks whose answer lies past the cut \\18Re-send cap & 5{,}000 chars & re-sent history stays compact & input tokens per turn over 20-turn sessions \\19Adaptive summarisation & $\tau=10^{5}$; $k=5$ & coherence over long sessions & retention of planted facts after summarisation \\20Token correction (\S\ref{subsec:accounting}) & max(provider, local) & cost never understated for text & ledger vs.\ provider invoice over a month \\21Single-call convention (\S\ref{subsec:onecall}) & instruction only & one round trip per analysis & round trips and sandbox failure rate with vs.\ without the instruction \\22Process sandbox (\S\ref{subsec:sandbox}) & 90\,s; 150\,dpi & server isolated from code faults & crash containment under fault injection \\23Live-formula spreadsheets (\S\ref{subsec:docs}) & --- & deliverable carries its derivation & share of cells that are formulas \\24\bottomrule25\end{tabular}26\begin{tablenotes}[flushleft]27\footnotesize28\item \textit{Notes.} Constants are those of \path{server/routes.ts},29\path{server/services/claudeService.ts}, \path{server/services/claude/tokenManagement.ts},30and \path{server/services/python/var.ts} at commit \texttt{e2a148a}.31\end{tablenotes}32\end{threeparttable}33\end{table}34