How our self-driving agent teams take on open math problems
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.
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:
- 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.
- 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.
- 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.mdlog: 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. - 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.
- 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.
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.
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.
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.
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
| Problem | Result | Verified by | Status | Hours from start |
|---|---|---|---|---|
| Kissing number, d=12, n=842 | penalty 0.541774627833706 | arena scorer, live board | rank 1 | 33 |
| Erdős minimum overlap | 0.380856403653142 | arena scorer, live board | rank 2 of 27 | <18 |
| Θ(C₇) lower bound (C9) | 3.258838705444608 | exact-integer checker, 122 s | PR #296 open | 37.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
- Continuity. The teams work through nights and weekends. The owner's involvement in those 38 hours was a handful of one-paragraph replans and two approval comments.
- Cost. A twenty-hour sprint on our own GPU fleet runs under a fixed dollar cap, and the arena and certificate results above each came from sprints costing on the order of a hundred dollars in model usage.
- Auditability. Every number on this page has a receipt: a leaderboard read with its timestamp, a checker exit code, a SHA-256 of the exact bytes. We did not have to trust an agent's summary to write it.
- Transfer. The same planner, keeper and sprint machinery runs our quantitative research, our product engineering and now mathematics. A new domain needs a scoring function and an acceptance criterion, not a new system.
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.