SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.28281 · 2026

LoopArena: Benchmarking Models as Runtime Controllers for Loop Engineering

Piotr Koniusz, Xiangxiang Chu, Rui Dai, Yi Wang, Haopeng Zhang, Kaikui Liu, Chengxiang Huang

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2608.28281.json · badge: /api/ran/2608.28281.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AMAP-ML/LoopArena canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
acquire_panel_writer_lease Ran
ran; our contract draft was wrong, not the code
AMAP-ML/LoopArena/src/looparena/commands/type2_panel.py
code served (permissive licence) · get_code("2d2e8d3b531bf5da")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TextIOWrapper. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary directory to serve as panel_root
panel_root = Path(tempfile.mkdtemp())

ARGS = {
    'panel_root': panel_root,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TextIOWrapper — a TextIOWrapper output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
jobs Ran
ran; our contract draft was wrong, not the code
AMAP-ML/LoopArena/src/looparena/commands/type3_panel.py
code served (permissive licence) · get_code("a931e05553505f6b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from dataclasses import dataclass
from pathlib import Path
from typing import Any

@dataclass(frozen=True)
class Job:
    case_id: str
    seed: int

    @property
    def key(self) -> str:
        return f'{self.case_id}/seed{self.seed}'

@dataclass(frozen=True)
class Plan:
    source: Path
    cohort: Path
    assets_root: Path
    case_ids: tuple[str, ...]
    seeds: tuple[int, ...]
    arm: str
    worker_model: str
    controller: dict[str, Any]
    execution: dict[str, int | str]

    def public(self) -> dict[str, Any]:
        return {'source_plan': str(self.source), 'cohort_dir': str(self.cohort), 'assets_root': str(self.assets_root), 'case_ids': list(self.case_ids), 'seeds': list(self.seeds), 'arm': self.arm, 'worker_model': self.worker_model, 'controller': self.controller if self.arm == 'controlled' else None, 'execution': self.execution}

def jobs(plan: Plan) -> list[Job]:
    return [Job(case_id, seed) for case_id in plan.case_ids for seed in plan.seeds]

# Construct valid arguments for the jobs function
plan_instance = Plan(
    source=Path("/tmp/source"),
    cohort=Path("/tmp/cohort"),
    assets_root=Path("/tmp/assets"),
    case_ids=("case_001", "case_002"),
    seeds=(42, 123),
    arm="controlled",
    worker_model="gpt2",
    controller={"learning_rate": 0.001, "num_epochs": 10},
    execution={"batch_size": 32, "device": "cpu"}
)

ARGS = {
    "plan": plan_instance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
localize_evaluator_plan Ran
ran; our contract draft was wrong, not the code
AMAP-ML/LoopArena/src/looparena/benchmarks/type3_runtime.py
code served (permissive licence) · get_code("94737b3d35ed3146")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path

# Create minimal test data for localize_evaluator_plan
plan_with_scbench = {
    'adapter_kind': 'scbench',
    'adapter_config': {
        'runner_root': '/opt/looparena/evaluator_assets/runner',
        'problems_root': '/opt/looparena/evaluator_assets/problems',
        'env_config': '/opt/looparena/evaluator_assets/env',
        'private_bundle_path': '/opt/looparena/evaluator_assets/bundle'
    }
}

plan_without_scbench = {
    'adapter_kind': 'other',
    'adapter_config': {
        'task_dir': '/opt/looparena/evaluator_assets/tasks'
    }
}

plan_with_nonportable = {
    'adapter_kind': 'scbench',
    'adapter_config': {
        'runner_root': '/other/path/runner'
    }
}

assets_root = Path('/tmp/local_assets')

ARGS = {
    'plan': plan_with_scbench,
    'assets_root': assets_root
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
localize_evaluator_plan Ran
ran; our contract draft was wrong, not the code
AMAP-ML/LoopArena/src/looparena/commands/type2_run.py
code served (permissive licence) · get_code("3f78f7bcd3deb220")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path

ARGS = {
    'plan': {
        'adapter_kind': 'scbench',
        'adapter_config': {
            'runner_root': '/opt/looparena/evaluator_assets/runner',
            'problems_root': '/opt/looparena/evaluator_assets/problems',
            'env_config': '/opt/looparena/evaluator_assets/env',
            'private_bundle_path': '/opt/looparena/evaluator_assets/bundle'
        }
    },
    'assets_root': Path('/tmp/local_assets')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
panel_writer_active Ran
ran, violated the contract we drafted
AMAP-ML/LoopArena/src/looparena/commands/type2_panel.py
code served (permissive licence) · get_code("a46c7e977f48c70c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary directory to serve as panel_root
temp_dir = tempfile.mkdtemp()
panel_root = Path(temp_dir)

# Create the lock file
lock_file = panel_root / '.panel-writer.lock'
lock_file.write_text('')

ARGS = {
    'panel_root': panel_root
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_object Ran
ran; our contract draft was wrong, not the code
AMAP-ML/LoopArena/src/looparena/benchmarks/type3.py
code served (permissive licence) · get_code("68131a46264551ab")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from pathlib import Path
import tempfile

# Create a temporary directory and file with valid JSON object
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "test.json"

# Write a valid JSON object to the file
test_data = {"key1": "value1", "key2": 42, "nested": {"inner": True}}
temp_path.write_text(json.dumps(test_data), encoding='utf-8')

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_dir Ran
ran; our contract draft was wrong, not the code
AMAP-ML/LoopArena/src/looparena/commands/type3_panel.py
code served (permissive licence) · get_code("2cc7ab3ef7219f62")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from dataclasses import dataclass
from pathlib import Path

@dataclass(frozen=True)
class Job:
    case_id: str
    seed: int

    @property
    def key(self) -> str:
        return f'{self.case_id}/seed{self.seed}'

# Create arguments
panel_root = Path('/tmp/panel')
job = Job(case_id='test_case', seed=42)

ARGS = {
    'panel_root': panel_root,
    'job': job,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
safe_relative Ran
ran on a synthesized input
AMAP-ML/LoopArena/src/looparena/benchmarks/type3.py
code served (permissive licence) · get_code("cb6bfce53ed0b6d6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path
import tempfile

# Create a temporary directory to use as root
with tempfile.TemporaryDirectory() as tmpdir:
    root = Path(tmpdir)
    
    # Create a subdirectory to ensure the relative path is valid
    (root / "subdir").mkdir(exist_ok=True)
    
    # Define valid arguments
    ARGS = {
        "root": root,
        "raw": "subdir/file.txt",
        "field": "config_path"
    }
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preflight_type2_case Not yet run
unverified (harvested, no recorded run)
AMAP-ML/LoopArena/src/looparena/commands/type2_run.py
code served (permissive licence) · get_code("63d8975575b4f621")
How it ran

no invocation recorded.

sha256_file Not yet run
unverified (harvested, no recorded run)
AMAP-ML/LoopArena/src/looparena/benchmarks/type3.py
code served (permissive licence) · get_code("a8c21f6c4ada713e")
How it ran

no invocation recorded.

summarize_release Not yet run
unverified (harvested, no recorded run)
AMAP-ML/LoopArena/src/looparena/commands/results_summarize.py
code served (permissive licence) · get_code("63a309bcd57f8929")
How it ran

no invocation recorded.

to_markdown Not yet run
unverified (harvested, no recorded run)
AMAP-ML/LoopArena/src/looparena/commands/type2_summarize.py
code served (permissive licence) · get_code("b316e927dce3ae6a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Loop Engineering is emerging as a practice for organizing development work around coding agents. Instead of writing each prompt by hand, practitioners design loops that monitor progress, assign work, run checks, and decide what the agent should do next. Even with a capable coding agent, a loop may trust a stale progress note, skip needed verification, spend its budget in the wrong direction, or stop before the task is safe to submit. Yet the final outcome of one end-to-end run cannot tell whether success or failure reflects the loop's guidance or the coding agent's ability to carry out the task. We introduce LoopArena, a benchmark for evaluating how well one model can guide a separate coding agent through a long-running task. The model under evaluation is the \textbf{Controller}: after each coding round, it receives a structured summary of the run and instructs a separate, fixed coding agent, the \textbf{Worker}, on what to do or verify next, or decides whether to stop. LoopArena evaluates this ability in three complementary settings that differ in execution scope and cost. Type I scores next-step Loop Contract selection through execution-validated questions without running the Worker at evaluation time. Type II executes repeated control over a selected slice of a full task, while Type III evaluates the paired full task from its original state. On full tasks, the best observed Strict Success Rate is \textbf{24.69\%}, leaving substantial room for improvement in long-horizon loop control. Across Controllers, the paired reduction in estimated inference cost averages \textbf{64.4\%}, and Type II produces a similar ordering under the main Core criterion (Spearman's \(ρ=\textbf{0.9747}\)). We release the benchmark data and evaluation code at https://github.com/AMAP-ML/LoopArena .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.28281")
get_code_for_paper("2608.28281")
have("2608.28281")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.28281.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.28281.svg)](https://syntology.ai/paper/2608.28281)

Connect an agent — have() is free.