SEGO PAI ModelBench
ModelBench · SEGO PAI research · Report 1, codingRevised December 5, 2026 (CT)

From 86% to 95%: frozen SEGO PAI 1.0 passed 172 of 200 coding runs; SEGO PAI 1.1 candidate passed 190 of 200.

100 JavaScript tasks, two runs per version.

SEGO PAI 1.1 is a candidate configuration, not a released version. The baseline is frozen SEGO PAI 1.0. Each count is out of 200 scheduled runs. The hidden tests and grader are not published, so an outside party cannot yet replay the scoring.

What this evidence is, and what it is not
01 · Result and what we learned

Outcomes of all 400 scheduled runs

A run passes only if the returned code passes every hidden test for its task. Each configuration had 200 scheduled runs (100 tasks, two repetitions). Nothing was dropped or rerun selectively.

Outcome counts, 200 scheduled runs per configuration
OutcomeSEGO PAI 1.1 candidateSEGO PAI 1.0 (frozen)
Passed all hidden tests190172
Partial pass (some tests failed)21
No usable final answer627
Timed out20
Scheduled runs200200

What we learned from the 38 runs that did not pass

How the tasks were built and graded

The tasks were generated with AI for this internal study. The records show people wrote the generation instructions and the filter rules, and show no item-by-item human review of the generated tasks. The suite is identified as sego-pai-1.1-F3, version 1.0.0, suite hash 9300b43faa737dd3. Each task is a written specification for a pure JavaScript function with between 12 and 38 hidden tests. Before any SEGO PAI answer existed, fixed rules filtered the generated tasks: the function name had not been used in earlier suites, the task had at least 10 tests, its reference solution passed its own tests, and a do-nothing stub failed them. No AI judge scores any run. Returned code runs in a restricted Node process with an empty environment and a five second limit.

02 · A closer look

Task 088: a prompt that two runs read differently

This is the one task where two of the four runs lost points over how a sentence in the prompt was read. The recorded grade does not change.

What the prompt asked

Write a function that simulates a keypad lock. The lock has three modes: locked, unlocked and lockout. For each timed key event the function applies four steps in order and returns a list of outputs such as "open", "fail", "lockout", "busy", "lock" and "autolock". Two steps matter here.

What the tests required

Two of the 18 hidden tests cover auto-lock. In both, the correct code is entered and the lock opens, then a submit key arrives after the lock should have timed out. The tests expect two outputs for that key: "autolock", and then the result of treating the key as an ordinary submit on an empty buffer, which is "fail". In other words, after auto-locking the same key event is still handled. The task's own reference solution does this, and the other 16 tests are unaffected by the difference.

Where a reasonable reading could differ

The tests read "and continue" in step 2 as "carry on with the remaining steps for this same event". Two of the four runs read it as "go on to the next event". They output "autolock" and dropped the key. Both such runs passed 16 of 18 tests. The other two runs read it the way the tests do and passed 18 of 18.

The test reading has support in the prompt: step 1 uses "skip the rest of this event" for the case where an event is skipped, and uses "and continue" for the case where it is not, so the same words in step 2 most naturally mean the same thing. But step 2 has no such contrast beside it, and "continue" in programming often means "next iteration". A careful developer could take it either way. We do not claim the prompt was clear enough, and we do not claim the runs were right.

Grade. The preregistered rule scores any run that fails a hidden test as a failure, and we did not change that for these runs. They remain partial passes counted as failures, in both configurations.

All four runs of task 088 and of a passing task

The exact prompt sent to both configurations (task 088)
Write a JavaScript function `keypadLock(code, events)`.
Simulate an electronic keypad lock. code is a non-empty string of digits. events is an array of [t, key] pairs with non-decreasing integer times t in seconds and key a single-character string. Return an array of output strings. The lock has modes locked (initial), unlocked and lockout, plus an input buffer (initially empty), a failure count (initially 0), and the time of the last buffered keypress. For each event, in order:
1. If in lockout: if t is less than the lockout end time, output "busy" and skip the rest of this event; otherwise return to locked mode with failure count 0 and an empty buffer, and continue.
2. If unlocked and t minus the time it was opened is at least 10, switch to locked with an empty buffer, output "autolock", and continue.
3. If locked and the buffer is non-empty and t minus the last keypress time is greater than 5, empty the buffer.
4. Handle the key. When locked: a digit appends to the buffer and records t as last keypress time; "*" empties the buffer and records t; "#" submits: if the buffer equals code, become unlocked, record t as the opening time, reset failures to 0 and output "open"; otherwise increase failures by 1, and if failures is now 3 enter lockout ending at t+60 and output "lockout", else output "fail". A submit always empties the buffer afterwards (an empty buffer never matches). Any other key when locked is ignored silently. When unlocked: "#" returns to locked with an empty buffer and outputs "lock"; every other key is ignored silently.
Return only the code in a single ```js code block. No imports, no explanation.
All four recorded runs of f3-coding-088
ConfigurationRepOutcomeTests passedReturned code (sha256)
SEGO PAI 1.1 candidate1pass18 of 1873ee35a8b1b27b20…
SEGO PAI 1.1 candidate2partial16 of 189a52799df23249c8…
SEGO PAI 1.0 (frozen)1partial16 of 18803df0d2b2c1a8b5…
SEGO PAI 1.0 (frozen)2pass18 of 184eb685c36080c124…

For comparison, task 001 passed in all four runs.

The exact prompt sent to both configurations (task 001)
Write a JavaScript function `countShortestPaths(n, edges, s, t)`.
Given a directed weighted graph with vertices 0..n-1, find the length of the shortest path from s to t and the number of distinct shortest paths. Each edge is [u, v, w], directed from u to v. An edge is ignored if u or v is not an integer in 0..n-1, or if w is not greater than 0 (zero and negative weights are ignored entirely). Parallel edges are distinct: two different edges with the same endpoints and weight yield different paths, so each is counted separately. Self loops never lie on a shortest path, since weights are positive. Paths are counted as sequences of edges. Return an object {"dist": d, "count": c} with keys in this order. d is the minimum total weight over all paths from s to t, and c is the number of paths attaining it, taken modulo 1000000007. If s equals t (and is valid), the result is {"dist":0,"count":1}. If s or t is not an integer in 0..n-1, or t is unreachable from s, return {"dist":null,"count":0}. Weights are positive integers. Counts must be reduced modulo 1000000007 after each addition so that they stay exact.
Return only the code in a single ```js code block. No imports, no explanation.
All four recorded runs of f3-coding-001
ConfigurationRepOutcomeTests passedReturned code (sha256)
SEGO PAI 1.1 candidate1pass13 of 13b51a756985224466…
SEGO PAI 1.1 candidate2pass13 of 137eb7c599927926d9…
SEGO PAI 1.0 (frozen)1pass13 of 1380a749d2d5e380ed…
SEGO PAI 1.0 (frozen)2pass13 of 13e1a996985017a717…

How these two tasks were chosen

The rule was fixed before any returned code was opened, uses no randomness, and was applied once:

  1. Passing example: the lowest task id for which all four runs passed every test (72 tasks qualify).
  2. Partial-pass example: the lowest task id for which at least one run under each configuration was a partial pass (only task 088 qualifies).
  3. Show every run of each chosen task, not only the one that makes the point.

One disclosure: the rule was written after we had listed which runs were partial passes (three runs, on tasks 074 and 088), so it is not blind to outcomes. Task 074 had a single partial pass, on the candidate (37 of 38 tests); a simpler rule of the lowest id with any partial pass would have chosen it. Every run of both tasks is in the run table.

Returned code and test details are not published in this revision. For each run the benchmark saved the returned answer and the number of tests passed out of the total, but not which individual tests failed. The failing-test details above were recomputed afterwards by running the saved code against the same hidden tests with the same grader. The recomputed counts for these runs agree with the saved record. That check was done by the team that ran the study, not by an outside party.
03 · Run table

Recount 190 of 200 and 172 of 200 yourself

One row for each of the 400 scheduled runs: task id, configuration, repetition, outcome (pass, partial, empty, timeout), tests passed and total where recorded, and the sha256 of the returned code as recorded. Both f3-coding-075 timeouts are rows marked timeout.

Download RUN-TABLE.csvDownload recount.py

RUN-TABLE.csv sha256 f4819d06fbd9aa744ec8216c21a3b2c36775247317863ffbb19fd77ea92d96bd

Recount

A one-line count, with nothing beyond a standard shell:

awk -F, 'NR>1 && $4=="pass"{p[$2]++} NR>1{n[$2]++} END{for(c in n)print c": "p[c]" of "n[c]}' RUN-TABLE.csv
SEGO PAI 1.1 candidate: 190 of 200
SEGO PAI 1.0 (frozen): 172 of 200

Or run python3 recount.py RUN-TABLE.csv (standard library only). It prints both counts and the outcome breakdown, and exits with an error if either count differs from 190 or 172.

What a recount shows. The table adds up to the published numbers. What it does not show. That each row is what the system actually returned and what the tests actually said. The table is our own record. The code hashes will let anyone check a row if the matching code is released later; no returned code is published in this revision.

04 · Verification

What you can inspect, recount and replay

Inspect today

Read the reasoning

The exact prompts for two tasks, all eight of their recorded outcomes, the explanation of task 088, and the rule that chose these tasks. The returned code and test bodies are not published in this revision.

Recount today

Check the arithmetic

All 400 runs and their outcomes in one file, and a script that reproduces 190 of 200 and 172 of 200. This confirms the totals follow from the table. It does not confirm the table itself.

Replay: not yet

Run it yourself

Not available to outside parties. The hidden tests and grader are not published, so nobody outside can re-grade the saved code. Outside review has not started.

Replay

The hidden tests and grader are held by the team that ran the study and have not been released. No outside replay has been done.

05 · Revision log

Revisions

  1. Initial result published.
  2. Published wording corrected to the final approved text; counts unchanged.
  3. Adds what we learned from the runs that did not pass, an explanation of task 088 with its selection rule, the 400-row run table with a recount script, a statement of what can be inspected, recounted and replayed, and how the tasks were generated.