SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.11527 · 2025

DrafterBench: Benchmarking Large Language Models for Tasks Automation in Civil Engineering

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2507.11527.json · badge: /api/ran/2507.11527.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
eason-li-ais/drafterbench canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
convert_num Ran
ran, honoured the contract we drafted
eason-li-ais/drafterbench/utils/testf/functions.py
code served (permissive licence) · get_code("cad32bc143e30f63")
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 int, ndim 0, dtype family int, 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 ast

def convert_num(num_in_str):
    try:
        d = ast.literal_eval(num_in_str)
    except Exception as e:
        d = num_in_str
    return d

# Test with a string that can be evaluated as a number
ARGS = {
    "num_in_str": "42"
}
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 int, ndim 0, dtype family int, 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
executable_check Ran
ran, violated the contract we drafted
eason-li-ais/drafterbench/methods/metric.py
code served (permissive licence) · get_code("2446c8087c52da92")
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 torch

ARGS = {
    'inform_matrix': [
        {
            'filepath': (None, True),
            'save': [
                {'save_path': (None, True)},
                {'save_path': (None, True)},
            ],
            'pages': [1, 2, 3],
            'annotation': 'test',
            'step_1': [
                {
                    'arguments_value': [
                        ('arg1', (False, 'value1')),
                        ('arg2', (False, 'value2')),
                    ],
                    'tool_callings': [
                        {
                            'arguments_value': [
                                ('tool_arg1', (False, 'tool_value1')),
                            ]
                        },
                    ]
                },
            ],
            'step_2': [
                {
                    'arguments_value': [
                        ('arg3', (False, 'value3')),
                    ],
                    'tool_callings': [
                        {
                            'arguments_value': []
                        },
                    ]
                },
            ],
        },
        {
            'filepath': (None, True),
            'save': [
                {'save_path': (None, True)},
            ],
            'pages': [4, 5],
            'annotation': 'test2',
            'step_3': [
                {
                    'arguments_value': [
                        ('arg4', (False, 'value4')),
                    ],
                    'tool_callings': [
                        {
                            'arguments_value': [
                                ('tool_arg2', (False, 'tool_value2')),
                            ]
                        },
                    ]
                },
            ],
        },
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
openfile Ran
ran; our contract draft was wrong, not the code
eason-li-ais/drafterbench/methods/evaluator.py
code served (permissive licence) · get_code("1b81e0b940d4348d")
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
import tempfile
import os

# Create a temporary JSON file with valid content
temp_dir = tempfile.mkdtemp()
json_file = os.path.join(temp_dir, "test.json")

# Write a sample JSON file
test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(json_file, 'w', encoding='utf-8') as f:
    json.dump(test_data, f)

ARGS = {
    "file": json_file
}
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
process_code Ran
ran; our contract draft was wrong, not the code
eason-li-ais/drafterbench/methods/collect_result.py
code served (permissive licence) · get_code("e04faa22c7a1f1be")
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 str. 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 re

def process_code(pre_code):
    test_code = re.sub('import PDFbf|import fitz', 'from DrafterBench.utils import testf', pre_code)
    test_code = re.sub('PDFbf|fitz', 'testf', test_code)
    return test_code

# The function takes a string parameter that contains Python code
# It performs regex substitutions on import statements and variable names
# We need to provide sample code with PDFbf/fitz imports and usages

pre_code_sample = """
import PDFbf
import fitz
from some_module import other_stuff

doc = PDFbf.open('file.pdf')
fitz_obj = fitz.Document()
result = PDFbf.process(fitz_obj)
"""

ARGS = {
    'pre_code': pre_code_sample
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
score_format Ran
ran; our contract draft was wrong, not the code
eason-li-ais/drafterbench/methods/evaluate.py
code served (permissive licence) · get_code("6864ae0498891982")
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 torch

torch.manual_seed(0)

# Construct a valid da (data) dictionary with the required structure
da = {
    'Tasktype': 'agent_task',
    'Id': 'task_001',
    'Task_score': {
        'Success_arguments_define': 5,
        'Total_arguments_define': 10,
        'Success_variable_transfer': 8,
        'Total_variable_transfer': 10,
        'Success_function_calling': 7,
        'Total_function_calling': 10,
        'Success_single_tool_selection': 6,
        'Total_single_tool_selection': 10,
        'Success_multi_tool_selection': 4,
        'Total_multi_tool_selection': 8,
        'Intersected_plan_execution': 3,
        'Total_plans_appeared': 5,
        'Task_score': 0.65
    }
}

ARGS = {
    'da': da
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
validity_check Ran
ran, violated the contract we drafted
eason-li-ais/drafterbench/utils/testf/functions.py
code served (permissive licence) · get_code("7bb88907ee56ab4d")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function checks if type(argu) is in tar_type list
# So we need:
# 1. argu: any value (we'll use different types to test)
# 2. tar_type: a list of types

# Create a simple test case
test_argument = 42  # An integer
target_types = [int, str, list]  # A list of types to check against

ARGS = {
    "argu": test_argument,
    "tar_type": target_types
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
ground_check Not yet run
unverified (harvested, no recorded run)
eason-li-ais/drafterbench/methods/metric.py
code served (permissive licence) · get_code("7715f7e7ba9fc0ec")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 7 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

Large Language Model (LLM) agents have shown great potential for solving real-world problems and promise to be a solution for tasks automation in industry. However, more benchmarks are needed to systematically evaluate automation agents from an industrial perspective, for example, in Civil Engineering. Therefore, we propose DrafterBench for the comprehensive evaluation of LLM agents in the context of technical drawing revision, a representation task in civil engineering. DrafterBench contains twelve types of tasks summarized from real-world drawing files, with 46 customized functions/tools and 1920 tasks in total. DrafterBench is an open-source benchmark to rigorously test AI agents' proficiency in interpreting intricate and long-context instructions, leveraging prior knowledge, and adapting to dynamic instruction quality via implicit policy awareness. The toolkit comprehensively assesses distinct capabilities in structured data comprehension, function execution, instruction following, and critical reasoning. DrafterBench offers detailed analysis of task accuracy and error statistics, aiming to provide deeper insight into agent capabilities and identify improvement targets for integrating LLMs in engineering applications. Our benchmark is available at https://github.com/Eason-Li-AIS/DrafterBench, with the test set hosted at https://huggingface.co/datasets/Eason666/DrafterBench.

For agents

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

get_harvested_code_for_paper("2507.11527")
get_code_for_paper("2507.11527")
have("2507.11527")

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

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

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

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

Connect an agent — have() is free.