\section{The \prisme{} architecture}\label{sec:architecture} \prisme{} (Predictive Routing with Intervention-Supervised Memory Editing) adds to a standard decoder a read-only \emph{source bank}, an ephemeral $M$-slot \emph{workspace}, a shared \emph{sparse editor}, a \emph{value controller} and a \emph{differential readout}. Figure~\ref{fig:architecture} gives the data flow; Table~\ref{tab:configs} the three dimensioned configurations. All notation is collected in Appendix~\ref{app:notation}. \begin{figure}[t]\centering \input{figures/architecture.tex} \caption{\prisme{} data flow for one position $t$. Solid arrows are read paths, the dashed arrow is the only write path (into 1--2 of the $M$ slots per action). The backbone residual stream $H$, the source bank $(K,V)$ and the summary $z_t$ are inputs to the editor and are never modified by it; the workspace is discarded after the token. With zero executed edits the output is bitwise the backbone output (explicit bypass).} \label{fig:architecture} \end{figure} \subsection{Backbone and source bank}\label{sec:backbone} The backbone $B_\phi$ is a pre-norm causal decoder with RMSNorm \citep{zhang2019rmsnorm}, rotary position embeddings \citep{su2021roformer}, grouped-query attention \citep{ainslie2023gqa}, SwiGLU feed-forward blocks \citep{shazeer2020glu}, tied input/output embeddings and one final normalisation. It returns the final residual stream $H_t=B_\phi(x_{1:t})\in\R^{t\times d}$, with $h_t=H_t[t]$, and its own head is $\ell^{\mathrm{bb}}_t = E\,\mathrm{RMSNorm}(h_t)$. The \emph{source bank} is a projection of the history to the workspace width $w\ll d$: \begin{equation} \hat H_t=\mathrm{RMSNorm}_{\mathrm{bank}}(H_t),\qquad K_t=\hat H_t W_K,\qquad V_t=\hat H_t W_V,\qquad z_t = P\,\hat h_t,\qquad W_K,W_V,P^{\!\top}\in\R^{d\times w}. \label{eq:bank} \end{equation} The bank is distinct from the Transformer KV cache: it stores projected \emph{final} representations, it is append-only, and a query at position $t$ may read rows $1,\dots,t$ only. \subsection{Ephemeral workspace} For every position a fresh workspace $S^{(0)}\in\R^{M\times w}$ is formed from $M$ trainable address embeddings $e_j$ and the current summary, \begin{equation} S^{(0)}_j = e_j + z_t,\qquad j=0,\dots,M-1 . \label{eq:init} \end{equation} $e_j$ carries no imposed semantic role; it only makes slots distinguishable. No state of $S$ survives to position $t+1$; history is carried exclusively by the autoregressive prefix and the two caches. \subsection{Action catalogue}\label{sec:actions} The nonterminal actions are $\textsc{single}_j$ ($j0$ is a fixed scalar set once at the start of editor training to the measured root-mean-square of the backbone residual stream (Section~\ref{sec:learning}); because the final RMSNorm is scale invariant, $s$ only reparametrises the learning rate of $U$. When $n_t=0$, the term \eqref{eq:readout} is algebraically zero; the implementation additionally branches out before allocating any slot when the budget is zero, so the fast path performs no workspace computation at all (Proposition~\ref{prop:identity}). \subsection{Configurations and parameter accounting} \input{tables/configs.tex}