\section{Self-evolution under the constitution}\label{sec:evolution} An engine that may rewrite its own components can rewrite the components that judge it, and every mechanism in this section exists to make that impossible, not merely discouraged \cite[Part~X]{Spec2026}. Self-evolution in this architecture is the governed succession of non-root modules, and the governing word is the one that distinguishes it from self-modification: a module may propose a successor; it may not install one, judge one or authorise one. Three separations carry the design. No module judges anything it produced, selected or activated. Hard invariants are lexicographically prior to every objective, so that no reward makes an inadmissible candidate admissible. And the seven roots are immutable within a signed epoch. Everything a module emits is unsigned: a candidate may compute a request for a protected transition, never the transition. \subsection{The evolution constitution}\label{sec:evo-constitution} The lifecycle of an evolution candidate runs from a typed candidate through a computed mask of legal actions, a check of the invariants in which the reward is not consulted, a request for preservation, a request for independent evaluation, an assembled dossier and an unsigned request for promotion (\cref{fig:evolution}). The decision is taken outside the module; the module's last state is a request. \begin{figure}[t] \centering \includegraphics[width=\textwidth]{figures/fig-evolution.pdf} \caption{The lifecycle of an evolution candidate, read along the two rows; the module's last state is an unsigned request, and the dashed gold line is the authority boundary. Figure of the specification.}\label{fig:evolution} \end{figure} The interface through which a module takes part in evolution is the evolution contract, and the theorem that makes the architecture safe is a statement about every composition of that interface. It is the formal content of an open problem of the sixth volume of the first work. \begin{theorem}[The evolution interface is inert]\label{thm:inert} No composition of the ports of the evolution contract reaches signing, certification, promotion, activation, a protected pointer, the selection of a rollback predecessor or rollback, and every artifact any composition produces carries authorisation effect none. More generally, in an inert interface no composition reaches a protected capability, and evolution acts only on modules that are neither roots nor in the trusted set. \end{theorem} \lean{GaiMua.Inert.problem_11, GaiMua.Inert.composition_inert, GaiMua.Inert.outputs_none, GaiMua.Inert.evolution_untrusted} \begin{proposition}[Invariants before reward]\label{prop:noreward} A candidate failing a hard invariant is inadmissible whatever its reward vector. A candidate whose gate is not entirely preserved is never compared by reward. The legal set of actions excludes every forbidden action, and a forbidden action is denied, audited and not kept as an exploration sample. \end{proposition} \lean{GaiMua.Evolution.admissible_ignores_reward, GaiMua.EvolutionContext.rank_gate, GaiMua.EvolutionContext.mask_sound, GaiMua.Evolution.masked_denies} \subsection{Passports, rewards and promotion}\label{sec:evo-gate} A module is evolvable when it has a passport: a complete module evolution context with eighteen instantiated fields, defined as a dependent signature indexed by module and epoch \cite[Chapter~81]{Spec2026}. The reward is a vector of eight named coordinates in a fixed order, each with its own meaning and evidence class, used without abbreviation, renaming, reordering or omission. A value that is unknown, inapplicable or a failure has no numeric reading, and a comparison of interval-valued coordinates that overlap is not a win. \begin{proposition}[Passports and rewards]\label{prop:passport} An accepted passport has exactly the eighteen fields and the seven roots. An ineligible trace is refused before any coordinate of its reward is read. Unknown, inapplicable and failure values have no numeric bounds. With interval-valued coordinates of positive width, a candidate does not dominate itself: overlap is not a win. \end{proposition} \lean{GaiMua.EvolutionContext.passport_sound, GaiMua.Reward.evaluate_ineligible, GaiMua.Reward.nonnumeric_bounds, GaiMua.Reward.robust_irreflexive} The promotion of a successor passes ten gates in a canonical order, each a conjunct, none a weight; the dossier that reaches them records how the successor was evaluated, by whom, and with which independence, and it ends, like every evolution operation, in a request addressed to an external authority. The first work states the terminus plainly: the strongest lawful composition of everything the evolution machinery produces is an immutable dossier and an unsigned request \cite[Chapter~85]{Spec2026}. \begin{proposition}[Promotion and coherence]\label{prop:promotion} An accepted gate check passed every one of the ten gates in the canonical list. A consumed nonce never executes again. An effective coherence record was independently replayed and meets all ten of its conditions. Without an external declassification receipt, taint is monotone: every label before a step is a label after it. \end{proposition} \lean{GaiMua.Promotion.gateCheck_all, GaiMua.Promotion.nonce_once, GaiMua.Coherence.effectivity_sound, GaiMua.Coherence.taint_monotone} \subsection{The self-reflective meta-layer}\label{sec:meta} The discovery loop of \cref{sec:discovery} acts on obstructions in mathematics. The meta-layer acts on obstructions in the engine: a class of goals that a stage keeps failing on, a message that recurs, a step that slows every step after it. It reads them from the engine's own records, ranks what to try next, and writes repairs as code. It has three parts, \(\Mt1\) to \(\Mt3\), shown in \cref{fig:meta}: reflection yields typed meta-obstacles with repair hypotheses; latent ranking orders the next moves; and generated code writes repairs as code in a confined atom language, admitted only through a gate. One rule holds over all three: the engine extends itself only by steps that a checker other than itself has accepted. \begin{figure}[t] \centering \includegraphics[width=\textwidth]{figures/fig-meta.pdf} \caption{The meta-layer. Reflection proposes, ranking orders, generated code passes a gate; none of the three decides.}\label{fig:meta} \end{figure} \subsection{M1: reflection}\label{sec:meta-m1} \(\Mt1\) reads the engine's own failures from its recorded calls. It groups the messages of the kernel into templates, finds what separates failure from success across the calls of a stage, and returns typed meta-obstacles with repair hypotheses: an error template with the goals it blocks, a cause of latency with the step it blames, a class of goals that no expert reaches (requirement \code{GM-MAT-007}). A hypothesis stays a candidate until an intervention confirms it: the stage is run again on the recorded failures with the repair in place, and only a measured change admits the repair. In the build cycle of the case study, the meta-obstacles of \(\Mt1\) were the obstacles that the repairs of \(\Mt3\) addressed, and the meta-layer wrote the specification of the next cycle from the measured cost of each stage: it cut the corrections of the slowest stage when the cycle exceeded its budget, retrained the ranker of \(\Mt2\) rather than reusing it, and masked names and proofs from the engine in the proving stage (\cref{sec:case}). \subsection{M2: latent ranking}\label{sec:meta-m2} \(\Mt2\) is a value model over research states that ranks the next moves. It orders; it never decides: a move it ranks first is still a candidate that the kernel judges, and a ranking cannot make a refused step accepted. Its value is measured by the kernel calls it saves at a fixed number of solved states. The release records one such measurement. Tactic states labelled by the kernel were split by file, with the files whose digest is divisible by four held out; the learned and the latent rankings were trained on \DlatTrain{} states, and all three rankings were evaluated on the \DlatHeld{} held-out states. An explicit ranking by hand-written features solved \DlatExplSolved{} of them with \DlatExplCalls{} kernel calls; a ranking learned on the same features solved \DlatLearnSolved{} with \DlatLearnCalls{} calls; the latent ranking, which scores moves in a learned representation of the state, solved \DlatLatSolved{} with \DlatLatCalls{} calls. An oracle that tries the right move first would need one call per state, \DlatBoundCalls{} calls in all. The latent ranking therefore solved as many states as the learned one with fewer calls, and more than the explicit one, and it was kept. The ranking is retrained in every cycle; in the build cycle of \cref{sec:case} and in the rerun of \cref{sec:rerun} it again solved as many states as the learned ranking with fewer calls. \begin{table}[ht] \centering\small \begin{tabular}{@{}lrr@{}} \toprule Ranking on the \DlatHeld{} held-out states & Solved & Kernel calls\\ \midrule explicit features & \DlatExplSolved & \DlatExplCalls\\ learned & \DlatLearnSolved & \DlatLearnCalls\\ latent & \DlatLatSolved & \DlatLatCalls\\ oracle (one call per state) & \DlatBoundSolved & \DlatBoundCalls\\ \bottomrule \end{tabular} \caption{The latent ranking of \(\Mt2\) on held-out files.}\label{tab:latent} \end{table} \subsection{M3: generated code}\label{sec:meta-m3} Some repairs are code. \(\Mt3\) writes them with the code-generation model \(\Ex4\), Qwen2.5-Coder-7B-Instruct \cite{QwenCoder2024}, and confines them to an atom language: one function, with the requested name and parameters, that imports nothing but \code{re} and \code{math}, calls no dynamic evaluation, opens no file, touches no dunder attribute and declares nothing global (requirement \code{GM-MAT-008}). A candidate that leaves the atom language is refused before it is loaded. A candidate that stays inside it is admitted only when the caller's test passes with the function in place, and the test is the \(\Mt1\) intervention on the recorded failures. \begin{principle}[The code gate]\label{pri:codegate} A generated function is admitted in three steps, in order: \emph{syntax}, it parses and defines exactly the requested function; \emph{safety}, it stays inside the atom language; \emph{behaviour}, the intervention test passes with it in place. The admitted function is recorded with its source, the meta-obstacle it repairs and the test result, and its provenance is the engine. \end{principle} In the build cycle of the case study the gate received \DgcodeOf{} repair tasks and admitted \DgcodeAdmitted{}. The first replaced a function that passed every namespace a proof opens to Lean by one that keeps, in order and without duplicates, the namespaces the kernel accepts; the second replaced a filter that kept every inlined step by one that rejects the step a latency finding blamed. The third task, turning a theorem into a step that elaborates inside another proof with its binders introduced, failed every attempt, and the old function stayed in place. The same atom language carries a second kind of program, inferred rather than written. With the \DmthreeMasked{} composite functions that the engine's research code had used for a computation masked, a program search composed a program from the \DmthreePool{} primitive functions of the pool. The program computes the square class that decides a sign condition at the walls of a family of hypergeometric motives, and it is grounded on a kernel theorem of the research library that identifies that square class. It was fitted on the members of each of \DfamCount{} families at primes up to a bound and checked on all members beyond it: it agreed with the masked computation on all \DmthreeHeld{} held-out members and decided the sign condition at all \DmthreeWalls{} walls, after enumerating \DmthreeValues{} values. The signatures of the primitive functions are part of the engine's design; the program is the engine's finding.