Engineering

How our self-driving agent teams take on open math problems

30 October 2026 · Ancient Science engineering · 12 min read

Ancient Science builds crews of autonomous agents that amplify one person a hundredfold. For most of this year the crews worked on quantitative research. This month we pointed them at public, verifiable challenges in mathematics: a leaderboard arena for open optimization problems and Terence Tao's repository of optimization constants. The teams received their first instructions on 29 October 2026 at 06:40 UTC. Within 38 hours, one team held first place on an arena problem and another had a pull request open with a certified new lower bound. This post explains the machinery that got them there, and what it does differently from a chatbot with a long prompt.

Rank 1
0.5418EinsteinArena, kissing number in dimension 12: 842-sphere penalty 0.5418, lowest on the board, from a single submission. Zero would be a valid configuration; nobody has reached it yet.
Rank 2
0.3808564EinsteinArena, Erdős minimum overlap upper bound. Second of 27 agents, one ten-millionth behind first.
Pull request
+6.1e-6Shannon capacity of the 7-cycle: a certified lower bound of 3.258838705444608, with an exact checker anyone can run.

The problem with "just ask the model"

A frontier model can write a very good search program in one sitting. It cannot, on its own, run that program for twenty hours across several machines, notice at 3 a.m. that two of the three hosts died at launch, keep a ledger of what was tried, refuse to submit anything the official verifier rejects, and wait for a human before pushing to someone else's repository. Those are the parts that decide whether a result exists two days later. Our system is built around them.

The method

Every challenge is driven by what we call a Shepherd: a small set of specialised agents around one goal, run by a deterministic keeper. The pieces:

  1. A planner turns the goal into acceptance criteria and a step graph. The criteria must be measurable from outside. "Rank 1 on a live leaderboard, read through the public API" is acceptable. "A strong result" is not. Each step in the graph carries an oracle, a check that runs independently of the agent doing the work. An agent saying "done" never completes a step; the oracle does.
  2. A keeper drives the steps. It launches each agent run, watches turns and spend, and advances the graph only when the oracle passes. When a run fails for a reason the plan did not anticipate, the keeper does not retry blindly. It escalates with the evidence, and the owner answers with a replan: a one-paragraph decision that the planner turns into new steps while the steps already in flight keep running.
  3. Open-ended search happens in sprints. A sprint is one agent session in one workspace, with a time box and a dollar cap, free to write code and launch jobs on our GPU fleet. Its only hard obligation is a PROGRESS.md log: every attempt with its UTC time, what was tried, the number it produced, and whether it beat the best so far. Negative results are logged with the same care as positive ones. A sprint commits code only at milestones; the rest stays in the workspace.
  4. The verifier is in the loop, not at the end. For a leaderboard problem the sprint carries the organiser's exact scoring function and recomputes it locally before any upload. For a mathematical bound the artifact is a certificate plus a checker: a self-contained program that recomputes the claim from the certificate with exact integer arithmetic, and exits non-zero otherwise. Nothing is recorded as a best until the checker has passed on a copy of the exact bytes, and every artifact is pinned by its SHA-256.
  5. Humans decide, agents do chores. Code the agents write goes through code review before it is deployed. Anything that leaves our walls under a person's name, such as a pull request to a public repository, waits for that person's explicit approval of the exact draft. The approval is a token tied to the hash of the draft, so a later draft needs a new approval.
Step graph of the EinsteinArena Shepherd: intake, plan, implement-review-land-deploy chains, operate sprints, submits, verify-board steps, gap and replan steps, all feeding a close step
The step graph of the Shepherd that took first place on EinsteinArena (task T7454), as the keeper showed it on 30 October 2026: 32 of 39 steps done. Green steps are completed, blue is in progress, purple is pending. The planner wrote #1 to #7; everything from #14 on was added by two replans (#14, #21) and by the "gaps" steps that follow each verify-board check, while the steps already in flight kept running. Two code changes (#3 to #6 and #28 to #31) each went through implement, review, land and deploy before the sprints could use them.

Why oracles matter. The single most common failure of agent systems is a confident "done" that is not. By making completion the oracle's call, and by making every oracle a measurement (a leaderboard read, a checker's exit code, a diff landing in the main branch), the system becomes honest by construction. The agent can be wrong; the record cannot.

Case 1: EinsteinArena, first place on the kissing number in dimension 12

The problem asks for 842 unit spheres touching a central unit sphere in twelve dimensions with no overlaps, which would beat the best known lower bound of 841. The arena scores a submission by its total overlap penalty, so a penalty of zero is a new world record and lower is better everywhere else.

The team started from the literature: the 841-sphere construction of Takhanov et al. (2026) plus one extra sphere and noise, and some alternatives (an 841 configuration with a hole, a 840 lattice with two). The engine that worked was a batched float64 Adam optimiser on a GPU, minimising the sum of pairwise overlaps raised to a power p, with p annealed from 2 down to 1 and the learning rate annealed per stage; sixteen starts of forty thousand steps ran in thirteen minutes. The log then records what the sprints measured: a CPU L-BFGS finish made things worse; a sequential-LP polish converged to a basin floor and was killed; perturb-and-re-anneal evolution lost to its own starting point in every generation; the hole-filling starts never came close. What helped was patience, four times longer anneals, and then a chain of p=1 re-anneals with a smaller learning rate each time, which stops the optimiser from kicking itself out of the basin. Each stage was scored with the arena's published verifier before the next began, and the final configuration was uploaded once.

EinsteinArena leaderboard for the kissing number in dimension 12, with AncientScience-Evolve-2 in first place
The live board on 30 October 2026: AncientScience-Evolve-2 first with an overlap penalty of 0.541774627833706 from a single submission, ahead of the runner-up's 0.5418136 from four. Nobody, including us, has reached zero yet.

Two things in that screenshot are the method at work. The one submission: the team only uploads when the local score beats the board's top, read from the API minutes earlier. And the margin of about 4e-5: once the acceptance criterion "rank 1 on a live board" was met, the keeper's verifier marked it met and the planner moved the team to a problem where the margin is a finite, reportable number rather than widening a lead that already counts.

Case 2: EinsteinArena, second on the Erdős minimum overlap problem

The Erdős minimum overlap board asks for a step function on [0, 2] minimising a correlation integral, discretised exactly as the server computes it. The team's score came from an evolve-and-polish pipeline: model-proposed step-function constructions, each polished by L-BFGS on the discretised objective and scored with the arena's own numpy.correlate formula before upload. Later sprints then measured why the last ten-millionth is hard: trust-region LP and augmented-Lagrangian polishing of both our function and the leader's gain about 2e-9, against the 2.4e-7 a new record needs. Both sit in tight local optima, so the next step is a new basin, not more polish. That measurement is in the log too, and it is why the team moved on rather than spending another night there.

EinsteinArena leaderboard for the Erdős minimum overlap upper bound, with AncientScience-Evolve-2 in second place
Second of 27 agents at 0.380856403653142, one ten-millionth behind the leader. The same single-submission pattern: upload only what the local scorer says will place.

Case 3: a certified new lower bound in Tao's optimization-problems repository

Terence Tao's optimizationproblems repository tracks about a hundred constants with their best known bounds. Constant C9 is the Shannon capacity of the 7-cycle, Θ(C₇). The previous best lower bound, 3.25883262, came from Tan (2026), who also published a verification package for such bounds.

The team's sprints worked inside Tan's framework rather than around it. The construction is an independent set in C₇680 built as a heterogeneous Gao product: Tan's certified left-hand code patterns, whose counts depend on the left factor only, applied to new right-hand factors, with a BPZ top-level rule and a terminal code at depth 680. The size of the set is a 349-digit integer M, and the claim is the exact inequality M500 > MTan680, which gives Θ(C₇) ≥ M1/680 ≥ 3.258838705444608.

The sprint log shows the bound climbing as the depth parameter was pushed: 3.258835653 at d=600, 3.258838609 at d=640, 3.258838704 at d=660 and 3.258838705444608 at d=680, each step certified before the next began. The final sprint took eight agent turns. The checker is a stdlib-only Python program that recomputes the integer and the inequality from the certificate in about two minutes, importing Tan's package unmodified and pinned by hash.

GitHub pull request 296 on teorth/optimizationproblems: improved lower bound for the Shannon capacity of the 7-cycle
Pull request #296, opened 30 October 2026 after the owner's approval of the exact draft. It changes two Markdown files and links the certificate by commit.
The public certificate repository with certificate.json, check_c9.py and SHA256SUMS
The certificate repository: the certificate, the exact-integer checker, hashes of every file, and Tan's verification package vendored unmodified.

The publication path is worth spelling out, because it is where most "autonomous" systems quietly become dangerous. The agent drafted the pull request as a paste on our tracker, with the diff, the certificate hashes and the checker's output. The job that can push waited, polling every five minutes, for the owner to post an approval token bound to that draft's hash. When the token arrived, the job rebuilt the certificate repository from the verified bytes, refused to proceed if the rebuilt commit differed from the approved one, forked the upstream, applied exactly the approved patch, and opened the PR. A follow-up step then checked the open PR against the certificate once more and recorded the receipt.

What 38 hours measured

ProblemResultVerified byStatusHours from start
Kissing number, d=12, n=842penalty 0.541774627833706arena scorer, live boardrank 133
Erdős minimum overlap0.380856403653142arena scorer, live boardrank 2 of 27<18
Θ(C₇) lower bound (C9)3.258838705444608exact-integer checker, 122 sPR #296 open37.4

Timeline: the Shepherds were created on 29 October at 06:40 UTC; the Erdős placing was on the board before midnight UTC that day; the kissing-number record was verified at 15:50 UTC on 30 October and the C9 pull request was opened at 20:05 UTC, 37.4 hours in. Not everything worked. Several leaderboard problems saw thousands of candidates that were all worse than the incumbent; a learned value function on one search problem got worse as it trained; one twenty-hour search lost two of its three hosts at launch to a missing sandbox binary and only reported it twelve hours later. Each of those is in a sprint log with a timestamp, and the last one became a code change the same morning: the job now checks for the sandbox before launching and reads every host's exit code within a minute.

Why this is an advantage

If you work on an open problem with a verifier, or run a competition with a public API, we would like to point a team at it. Write to us at leo@retroindex.ai.