Elected, Not Named

Which model gets which task is usually a line in a configuration file, changed when somebody reads a launch post. It can instead be a statistic of each model's scored record, with a stated bound. jack has that rule written down to the constant, and has not drawn a single round with it.

Drafted with a Claude session and edited by the author.

Essays AI Decision Theory
On this page

In most systems built on language models, the model that does a given job is a line in a configuration file. It was put there because it led a leaderboard, or was cheaper, or somebody tried three and liked the second. It is changed when someone reads a launch post. None of this uses the one body of evidence the team owns: the record of what each model did on the team’s own work. The choice is made by a person, on grounds nobody writes down, and it is never scored.

The alternative has a long literature and is not exotic. Make every model’s output a forecast that the world later settles. Score each forecast with a proper score, which is one under which a forecaster does best on average by stating the probability it actually believes. The log score, minus the natural logarithm of the probability given to what happened, is the usual one. Then let a rule fixed in advance choose the next model from those scores, with a known bound on how much worse it can do than the best model in hindsight. jack, the court I built for an agent that changes its own code, has this rule written down to the last constant. This essay sets out the rule in enough detail to implement, then what jack’s record shows, which is less than the design promises.

When every model’s work is scored

Take the easy case first. Several models all forecast the same events, and every event is settled as yes or no. The update is the multiplicative-weights rule of Freund and Schapire’s Hedge (1997), applied to the log score at a rate of one. Keep a weight for each forecaster, starting equal. When an event settles, multiply each forecaster’s weight by the probability it gave to what actually happened. To forecast the next event, take the weighted average of everyone’s forecasts, weights normalised to sum to one.

That is the whole of it. Applied to the log score in this way, the weighted average is exactly the Bayesian mixture over the forecasters under a uniform prior. Its guarantee is a property of that mixture, not Hedge’s own theorem, which concerns losses between nought and one. The mixture’s total log-loss is within ln⁡K\ln K of the best single forecaster’s, for KK forecasters, whatever the outcomes are. This is Vovk’s aggregating algorithm, set out in Cesa-Bianchi and Lugosi’s textbook of 2006. With three models the mixture can never fall more than about 1.1 nats (the unit of a natural logarithm) behind the best of them, however long the run.

jack’s brief for this layer is strict about having nothing to tune: “No learning rate: η = 1 is the telescoping identity, the uniform prior the minimax choice for the ln K bound”. The general form raises each probability to a power, the learning rate, before multiplying. A rate set by hand would be a small authority of its own. Two further rules are easy to get wrong. The weights are updated in the order in which events settle, not the order in which they were forecast. The mixture’s forecast for an event uses only the events settled before it, so that “nothing about the event itself enters either”. And a forecaster that made no forecast on an event is not dropped from it. It is scored as if it had forecast the base rate, or a model could improve its weight by keeping quiet on hard questions.

This case weighs; it does not choose. For a team that can afford to run several models on the same task and keep one answer, it is the right tool.

When only the chosen model’s work is seen

Most teams cannot afford that. An agent session is expensive, so one model is given the task and the others are not run. What the others would have done does not exist, and no later analysis will recover it.

This is the bandit problem, and the standard algorithm for it is EXP3, from Auer, Cesa-Bianchi, Freund and Schapire in 2002. jack’s brief for its election specifies it as a recipe.

Each round, one model is invited and makes six forecasts that hour about the public data catalogue of my company. A forecast in jack is a probability in thousandths. If each forecast gave the outcome that happened nn thousandths, the round’s gain is the mean of ln⁡n\ln n over the six forecasts divided by ln⁡999\ln 999, which is one for six perfect forecasts and nought for six that put one thousandth on what happened. A missing forecast counts at that worst score, because, in the brief’s words, “a bad round is never discarded”. Each model kk carries a running total G^k\hat G_k of its gains. A gain is added only in a round where that model was invited, and it is first divided by the probability πk\pi_k with which the model was drawn that round. That division is the whole trick. A model drawn with probability one in ten has its gain counted ten times, which on average makes up for the rounds in which it was not drawn.

The weights are wk=exp⁡(ηG^k)w_k = \exp(\eta \hat G_k), and the probability of drawing model kk next is pk=(1−γ) wk/∑jwj+γ/Kp_k = (1-\gamma)\, w_k / \sum_j w_j + \gamma / K. The second term is a floor of exploration, so no model is written off after a few bad rounds. Nobody chooses the constants. Corollary 3.2 of Auer and colleagues (2002) sets γ=min⁡(1,Kln⁡K/((e−1) g))\gamma = \min\bigl(1, \sqrt{K \ln K / ((e-1)\,g)}\bigr) and η=γ/K\eta = \gamma / K, where gg is an upper bound on the best model’s total gain; since a round’s gain is at most one, a bound on the number of rounds will do. The brief prints the values, “printed here only so the pin has a number to kill”, which is to say so that a test can fail if the code uses any other.

The practical rule that follows is the one most often missed: “The importance weight uses the propensity saved in the invite, never a later one.” A team that logs which model it chose but not the probability of choosing it cannot compare its models fairly afterwards.

One complication many teams will share is that the feedback is late. A round’s outcomes settle about three hours after its draw, by which time three more draws are due, and a draw on weights that miss those rounds is outside the theorem. Joulani, György and Szepesvári showed in 2013 that one remedy is to run independent copies of the algorithm, one more than the delay. The brief notes the same construction in Weinberger and Ordentlich’s work of 2002. So the brief runs four copies, round tt going to copy t mod 4t \bmod 4. Each copy’s previous round has settled by the time it draws again; if not, the round is skipped. A fourteen-day window holds at most 336 hourly rounds, so each copy has at most 84. With K=3K = 3 and g=84g = 84 the formulas give γ=0.15111\gamma = 0.15111 and η=0.05037\eta = 0.05037, the brief’s values.

Then there is the bound, which the brief states honestly. EXP3’s expected shortfall against the best fixed model is at most 2(e−1) gKln⁡K2\sqrt{(e-1)\, g K \ln K}. For one copy that is 43.62 units of gain, and across the four at most 174.5, over at most 336 rounds. The copies have a price: a single undelayed run over all 336 rounds would carry a bound of about 87, so interleaving costs a factor of D+1\sqrt{D+1}, here two. That is not much of a promise on a total that cannot pass 336, and the brief does not pretend otherwise: the bound is “loose, as every EXP3 bound at this horizon is”, and “its record, not its bound, is what the report shows”.

Making the draw checkable

The theorem needs a random draw that the models cannot anticipate, and a court needs one that anyone can replay. jack’s device is to sign the round’s name (the string election.invite, the stream and the hour) with herald-2. That is the clerk’s key, which already signs the court’s merges; the election gets a signing namespace of its own. The signature is hashed with SHA-256 and the hash read as an integer below 22562^{256}. That range is cut into three intervals in proportion to the drawing probabilities, and the model whose interval holds the integer is invited. The signature goes into the invitation, so anyone can check it against the public key and recompute the choice. The chosen interval’s width, as an exact fraction, is the πk\pi_k.

The brief does not call this a verifiable random function. An honest signer of this kind produces one signature per round, but a verifier cannot tell whether the signer was honest. The holder of the key could sign the same string many times, by other methods, until the hash picked the model he wanted, and “every such σ verifies”. So the brief calls the draw “a deterministic signature the record can verify and replay, unpredictable to anyone without the key, and a fair draw only under named assumptions about the key’s custodian”. There are three: the custodian signs once; the hash of a fresh signature is as good as uniform; and the round’s rewards are fixed before the draw, because the outcomes come from “a process that reads no entry of the record”. The custodian, the brief says, is “the sovereign’s machine”, which is mine. So the fairness of the draw rests on my not rigging it, the kind of trust the court exists to remove, which here has been written down in place of being removed.

Who can be elected

The entrants are pairs of a key and a model, so that the record can tell a model apart from the role it runs under. The brief names three: the reviewer’s key with openai/gpt-5.4-mini, the builder’s key with the same model, and the reviewer’s key with openai/gpt-6-astra-fast. The roster is fixed for the window, and “a new pair enters at the next window’s brief”.

The algorithm does not remove the nomination. A model nobody thought to nominate cannot win; a configuration file has the same limit, but here the nominations are written down and dated.

The rule itself is a nominee of a sort: jack’s charter names “Hedge or Fixed Share on proper scores” (Fixed Share, Herbster and Warmuth’s of 1998, follows a change in which forecaster is best) and calls the election “an entrant, not law”.

What has run

None of the election has run, and its precondition, the scored mixture of the first section, has not been promoted.

The election’s own window was emptied of rounds before it opened. Amendment 10, of 10 November, found that the step which would start an invited model’s session had never been built, and offered two courses: (A) build it that week, or (B) hold no live round. The amendment quotes my decision, “Definitely B”, and, later in the same quotation, “let’s not use astra except when necessary”. Counsel, the court’s adviser, had put 0.55 on every criterion of the election’s brief holding by 1 December, on terms that included twenty-four witnessed rounds. That forecast resolved no, and the resolution’s evidence reads “zero election.invite forecasts”. The key that would sign the invitations still holds the power to merge and no other.

Meanwhile the scores an election would consume arrive every hour. The table below is recomputed from the log. The base rate is Laplace’s rule, (s+1)/(n+2)(s+1)/(n+2) after ss yeses in the stream’s first nn settled events:

StreamKeyResolvedMean log-lossBase rate on the same events
Cataloguereviewer3,9530.2990.692
Cataloguebuilder170.6960.462

There are two reasons an election could not act on it.

The first is that there is one model in it. The catalogue stream’s forecasts have recorded their model since 1 November, and at the commit this essay was checked against 3,962 catalogue forecasts name a model, and every one of them names openai/gpt-5.4-mini: 3,950 under the reviewer’s key (one of them entered under the misspelt forecast type world.renavone) and 12 under the builder’s. The roster’s second model, gpt-6-astra-fast, has not forecast the catalogue stream once. On the catalogue stream the record cannot compare two models, because it has only watched one. The few dozen forecasts elsewhere that name another model (39 for openai/gpt-6-astra on racing, reviews and proposals, 2 for google/gemini-4-argon) are outside the election’s rounds. The one comparison on offer is between two keys running the same model, on 3,941 settled forecasts against 11. A bandit learns only about the arms that are pulled.

The second is the score. The audit described in A Test Needs a Strawman found that the edge on the catalogue stream comes from knowing which pages update hourly and which daily. Counsel’s computation of 17 November, over 1,524 events, gave a mean log-loss of 0.692 for the pooled base rate and 0.299 for the mixture of entrants. That 0.299 is a different quantity from the reviewer’s in the table, which is one key over 3,953 events. A rule with no model in it, which counts how often each dataset has updated before, scored 0.295. Amendment 10 calls it “a stream that measures the cron”. An election run on that score would elect whichever entrant had best learned the timetable. An election amplifies its score; it does not improve it.

What carries over

Where it can be afforded, let every candidate model do the same work on a sample of tasks. Score all of them with a proper score against outcomes the world supplies, and weight them by Hedge at a learning rate of one. Where only one model can run, draw it from EXP3’s probabilities. Save the probability of the draw with the record of the task, because without it the comparison is lost for good. Before either rule chooses anything, score a forecaster with no model in it on the same events. If it matches the models, the task does not measure what the models are for. And write down who nominated the candidates and when, since that choice is the one no algorithm makes.

At jack’s current commit no round has been drawn, every catalogue forecast that names a model names the same one, and the scores arrive every hour with no rule acting on them.


This is chapter 7 of A Court for Agents retold for reading on its own. The chapter is in the book, whose source is gfrmin/agent-court. The quotations are from transcripts/BRIEF-C2a-draft.md, transcripts/BRIEF-C2b-draft.md, transcripts/COUNSEL-OPEN.md and CHARTER.md in renavondata/jack at commit 64ef271. The scores in the table and the model counts are a recomputation from log.jsonl at that commit, with the base rate taken as Laplace’s rule by stream in order of resolution; they are not the court’s tool’s output. Rechecked at e8165ab: still no election round, and every catalogue forecast that names a model (3,992 by then) names openai/gpt-5.4-mini.