\section{Results on competitive programming}\label{sec:results2} \subsection{Textbook moves} \begin{table}[t]\centering\small \caption{Textbook moves added to the DGM seed (Haiku~5.5; all 232 fresh problems, two runs each, one interleaved batch). E: string-replace editor; B: non-interactive shell; L: model loop with a 16{,}000-token budget; P: workflow prompt. Gain over the seed in the same batch with 95\% intervals; cost in dollars per thousand tasks; share of runs that end with no solution.}\label{tab:grid} \begin{tabular}{lrrrr}\toprule moves & $F$ (\%) & gain [95\% CI] & cost & no solution (\%) \\ \midrule \csname @@input\endcsname tab_grid.tex \bottomrule\end{tabular}\end{table} Every combination that contains the model-loop move L gains between $\vgridWithLmin$ and $\vgridWithLmax$ points over the seed, and every combination without it between $\vgridNoLmin$ and $\vgridNoLmax$ (Table~\ref{tab:grid}). L bundles four changes (a 16{,}000-token budget, an answer to every tool call, one re-prompt after a truncated output, and a 40-turn limit); alone it gains $\vgridLgain$ points. The editor and the shell change nothing measurable on their own, and the workflow prompt alone costs $\vgridPgainAbs$ points: its longer reasoning runs into the seed's 4{,}096-token cap more often. \paragraph{The registered test (H6).} The second pre-registration asks whether the best textbook combination comes within three points of the best first-round loop agent, the one from loop 3. The best of the 15 combinations is chosen on $F_1$ and compared on $F_2$ (\S\ref{sec:round2}); we also named two single candidates to report on all of $F$, all four moves and L. Loop 3's agent was re-evaluated in another batch, so these contrasts cross batches. We report raw contrasts here and seed-adjusted ones in Appendix~\ref{app:batches}. All contrasts in this paragraph are the candidate minus loop 3's agent, in points. The combination chosen on $F_1$ (\vHsixWinner) is $\vHsixFtwoAbs$ points [$\vHsixFtwoAbslo$, $\vHsixFtwoAbshi$] behind on $F_2$, so H6 is not supported. Over the \vlcN{} combinations that contain L, the contrasts on $F_2$ range from $\vlcFtwoMin$ to $\vlcFtwoMax$, and the chosen one happens to be the lowest. On all of $F$, all four moves are $\vpsEBLPRawAbs$ points [$\vpsEBLPRawAbslo$, $\vpsEBLPRawAbshi$] behind and L is $\vpsLRawAbs$ [$\vpsLRawAbslo$, $\vpsLRawAbshi$] behind. Of the \vlcN{} L combinations, \vlcMiss{} miss the margin and \vlcSig{} are significantly behind. The literal registered reading chooses the best combination on all of $F$ (\vhsixLitBest) and scores it on the same problems, which favours it; its contrast, $\vhsixLit$ [$\vhsixLitlo$, $\vhsixLithi$], is within the margin on raw scores but not after seed adjustment. Every combination is cheaper per task than loop 3's agent, at most $\vgridMaxCostShare\%$ of its cost; L alone costs $\vgridLCostShare\%$ as much, and all four moves cost $\vgridEBLPCostShare\%$. Measured from the seed, the textbook moves thus close about nine tenths of the distance to the best loop agent and remain one to five points behind it: on all fresh problems the contrasts of the L combinations range from $\vlcFMax$ to $\vlcFMin$, and on $F_2$ the chosen combination is at $\vHsixFtwo$. \paragraph{All loops against one move (exploratory).} The final batch measured every loop's reported best agent, the seed, the cap-only seed and L together, two runs per problem (Table~\ref{tab:loops}). There L gains $\vlvLgain$ points [$\vlvLgainlo$, $\vlvLgainhi$] over the seed. No loop agent is significantly better than L and $\vlvWorse$ of $\vlvN$ are significantly worse; the best, loop 3's agent, is $\vlvBest$ points [$\vlvBestlo$, $\vlvBesthi$] ahead, so non-inferiority of L within three points is not shown in this batch either. In the third-round batch, loop 3's agent is $\rcLoopThreeLAbs$ points [$\rcLoopThreeLAbslo$, $\rcLoopThreeLAbshi$] ahead of L, a significant gap (\S\ref{sec:random-clean}). Section~\ref{sec:round1} reports how far the cap-only seed trails loop 3's agent in the final and ablation batches. The proxy caps every request at 16{,}000 output tokens, so loop 3's agent never receives more output than L; what it adds is more attempts after an empty turn. With one more attempt when its first solution fails the sample tests in the problem statement (the rule of the compute-matched baseline above), L reaches $\vLtwoAcc\%$ at \$$\vLtwoUsd$ per thousand tasks, while loop 3's agent reaches $\vLthreeAcc\%$ at \$$\vLthreeUsd$, a contrast of $\vltwoRaw$ points [$\vltwoRawlo$, $\vltwoRawhi$]. This comparison pairs L's runs from the grid batch with loop 3's agent from the ablation batch (Appendix~\ref{app:batches}); it was specified after the H6 result and before it was computed. \subsection{One-shot redesigns} \begin{table}[t]\centering\small \caption{One-shot redesigns of the DGM seed by a language model (Haiku~5.5 task model; fresh problems, two runs each). Each redesign saw the seed's code and five failure logs once. Cap: the output cap the redesign set. Opus redesigns are registered; Sonnet redesigns are exploratory.}\label{tab:redesign} \begin{tabular}{lrrrr}\toprule agent & cap & $F$ (\%) & gain [95\% CI] & cost \\ \midrule \csname @@input\endcsname tab_redesign.tex \bottomrule\end{tabular}\end{table} Four of the five Opus redesigns and three of the five Sonnet redesigns raise the output cap to 8{,}192 tokens and gain 18 to 22 points; the three that keep 4{,}096 change the pass rate by $-1$ to $+8$ points (Table~\ref{tab:redesign}). For the registered H8 we take contrasts as redesign minus loop, again across batches (Appendix~\ref{app:batches}). The contrast of the average Opus redesign with the average loop best is $\vHeightOpusmean$ [$\vHeightOpusmeanlo$, $\vHeightOpusmeanhi$], so this part is supported. The best of five, chosen on $F_1$, is $\vHeightOpusbestAbs$ points [$\vHeightOpusbestAbslo$, $\vHeightOpusbestAbshi$] behind loop 3's agent on $F_2$, so that part is not. The best Opus redesign on all of $F$ is $\vheightLitOpusRawAbs$ points [$\vheightLitOpusRawAbslo$, $\vheightLitOpusRawAbshi$] behind. \input{sec_redesign_lf_v3.tex} \subsection{Search without diagnosis, another search rule, more loops} \input{sec_h7_v2.tex} \paragraph{With a clean request list.}\label{sec:random-clean} \input{sec_round3_e2_v3.tex} \subsection{What the lineages contain} The loops' edits depend on each other. Removing one edit from a lineage and re-applying the rest leaves rejected hunks for all but \vlinThreeClean{} of loop 3's \vlinThreeN{} edits (\vlinTwoClean{} of \vlinTwoN{} for loop 2, \vlinOneClean{} of \vlinOneN{} for loop 1), so the registered test of whether two edits carry most of the gain (H9) cannot be run. Removing loop 3's last edit, the only leave-one-out variant that applies cleanly, costs $\vlasteditAbs$ points [$\vlasteditAbslo$, $\vlasteditAbshi$]. In an exploratory variant, setting the output cap of loop 3's agent back to 4{,}096 tokens while keeping its other code costs only $\vsemcapdropAbs$ points [$\vsemcapdropAbslo$, $\vsemcapdropAbshi$], probably because the agent also retries empty turns with nudges and fallback calls.