SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.07524 · NeurIPS · 2025

TAI3: Testing Agent Integrity in Interpreting User Intent

Xiangyu Zhang, Kaiyuan Zhang, Shiwei Feng, Xiangzhe Xu, Zian Su, Xuan Chen, Yusuf Ahmed, Mingwei Zheng

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 1 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/2506.07524.json · badge: /api/ran/2506.07524.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
OthersideAI/self-operating-computer canonical (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
FunctionStatusWhere it lives
convert_percent_to_decimal Ran
ran on a synthesized input
OthersideAI/self-operating-computer/operate/utils/misc.py
code served (permissive licence) · get_code("8fb25821e93bbc5a")
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 float, 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 numpy as np

# The function convert_percent_to_decimal takes a percent parameter
# and converts it to a float (decimal value).
# It uses float() conversion and handles ValueError exceptions.

# Valid test cases for the percent parameter:
# - A string representation of a number: "50.5"
# - A numeric type: 25, 75.5
# - An invalid string that will raise ValueError: "abc"

ARGS = {
    "percent": "50.5"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
format_evaluation_prompt Ran
ran on a synthesized input
OthersideAI/self-operating-computer/evaluate.py
code served (permissive licence) · get_code("d85dd878596925b2")
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 torch

ARGS = {
    "guideline": "The image should display a clear product name and price"
}
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 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
get_label_coordinates Ran
ran on a synthesized input
OthersideAI/self-operating-computer/operate/utils/label.py
code served (permissive licence) · get_code("06053a203aa2ddc3")
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.

import torch
import numpy as np

torch.manual_seed(0)

# The function retrieves coordinates for a given label from a dictionary
# label: a string identifier (e.g., "~1")
# label_coordinates: a dictionary mapping label strings to coordinate values

# Create sample label_coordinates dictionary
label_coordinates = {
    "~1": [0.5, 0.3, 0.8, 0.2],
    "~2": [0.1, 0.9, 0.4, 0.6],
    "label_A": np.array([1, 2, 3, 4]),
    "label_B": torch.tensor([0.1, 0.2, 0.3, 0.4])
}

# Define the label to retrieve
label = "~1"

# Construct ARGS dictionary with all required parameters
ARGS = {
    "label": label,
    "label_coordinates": label_coordinates
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
get_text_coordinates Ran
ran on a synthesized input
OthersideAI/self-operating-computer/operate/utils/ocr.py
code served (permissive licence) · get_code("95bfb8d8ec9060ff")
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
import numpy as np
from PIL import Image
import tempfile
import os

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
image_path = os.path.join(temp_dir, "test_image.png")

# Create a simple test image (100x100 pixels)
img = Image.new('RGB', (100, 100), color='white')
img.save(image_path)

# Create EasyOCR result format: list of [bounding_box, text, confidence]
# Each bounding box is a list of 4 coordinate pairs (top-left, top-right, bottom-right, bottom-left)
result = [
    [
        [[10.0, 20.0], [50.0, 20.0], [50.0, 40.0], [10.0, 40.0]],
        "sample text",
        0.95
    ],
    [
        [[60.0, 60.0], [90.0, 60.0], [90.0, 80.0], [60.0, 80.0]],
        "more text",
        0.87
    ]
]

ARGS = {
    "result": result,
    "index": 0,
    "image_path": image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, 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
is_overlapping Ran
ran on a synthesized input
OthersideAI/self-operating-computer/operate/utils/label.py
code served (permissive licence) · get_code("3ddd1a66cc3ae401")
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

torch.manual_seed(0)

# box1 and box2 are tuples of 4 coordinates: (x1, y1, x2, y2)
# representing bounding boxes with top-left (x1, y1) and bottom-right (x2, y2)
box1 = (10, 20, 30, 40)
box2 = (25, 35, 50, 60)

ARGS = {
    "box1": box1,
    "box2": box2,
}
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
parse_eval_content Ran
ran on a synthesized input
OthersideAI/self-operating-computer/evaluate.py
code served (permissive licence) · get_code("9bf6ad9eec22b696")
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 json

def parse_eval_content(content):
    try:
        res = json.loads(content)
        print(res['reason'])
        return res['guideline_met']
    except:
        print("The model gave a bad evaluation response and it couldn't be parsed. Exiting...")
        exit(1)

# Construct valid arguments
valid_json_content = json.dumps({
    'reason': 'The response meets all guidelines',
    'guideline_met': True
})

ARGS = {
    'content': valid_json_content
}
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
parse_operations Ran
ran on a synthesized input
OthersideAI/self-operating-computer/operate/utils/misc.py
code served (permissive licence) · get_code("b91088edc90ff80d")
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 re

def parse_operations(response):
    if response == 'DONE':
        return {'type': 'DONE', 'data': None}
    elif response.startswith('CLICK'):
        click_data = re.search('CLICK \\{ (.+) \\}', response).group(1)
        click_data_json = json.loads(f'{{{click_data}}}')
        return {'type': 'CLICK', 'data': click_data_json}
    elif response.startswith('TYPE'):
        try:
            type_data = re.search('TYPE (.+)', response, re.DOTALL).group(1)
        except:
            type_data = re.search('TYPE "(.+)"', response, re.DOTALL).group(1)
        return {'type': 'TYPE', 'data': type_data}
    elif response.startswith('SEARCH'):
        try:
            search_data = re.search('SEARCH "(.+)"', response).group(1)
        except:
            search_data = re.search('SEARCH (.+)', response).group(1)
        return {'type': 'SEARCH', 'data': search_data}
    return {'type': 'UNKNOWN', 'data': response}


ARGS = {
    'response': 'DONE'
}
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
validate_and_extract_image_data Ran
ran on a synthesized input
OthersideAI/self-operating-computer/operate/utils/label.py
code served (permissive licence) · get_code("1a44feb7665fac56")
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 tuple. 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 base64

# Construct valid test data
message_with_image = {
    'image_url': {
        'url': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=='
    }
}

data = {
    'messages': [message_with_image]
}

ARGS = {
    'data': data
}
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 tuple — a tuple 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
evaluate_final_screenshot Not yet run
unverified (harvested, no recorded run)
OthersideAI/self-operating-computer/evaluate.py
code served (permissive licence) · get_code("a50e3b454b555b94")
How it ran

no invocation recorded.

Also present in other papers' code

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

LLM agents are increasingly deployed to automate real-world tasks by invoking APIs through natural language instructions. While powerful, they often suffer from misinterpretation of user intent, leading to the agent's actions that diverge from the user's intended goal, especially as external toolkits evolve. Traditional software testing assumes structured inputs and thus falls short in handling the ambiguity of natural language. We introduce TAI3, an API-centric stress testing framework that systematically uncovers intent integrity violations in LLM agents. Unlike prior work focused on fixed benchmarks or adversarial inputs, TAI3 generates realistic tasks based on toolkits' documentation and applies targeted mutations to expose subtle agent errors while preserving user intent. To guide testing, we propose semantic partitioning, which organizes natural language tasks into meaningful categories based on toolkit API parameters and their equivalence classes. Within each partition, seed tasks are mutated and ranked by a lightweight predictor that estimates the likelihood of triggering agent errors. To enhance efficiency, TAI3 maintains a datatype-aware strategy memory that retrieves and adapts effective mutation patterns from past cases. Experiments on 80 toolkit APIs demonstrate that TAI3 effectively uncovers intent integrity violations, significantly outperforming baselines in both error-exposing rate and query efficiency. Moreover, TAI3 generalizes well to stronger target models using smaller LLMs for test generation, and adapts to evolving APIs across domains.

For agents

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

get_harvested_code_for_paper("2506.07524")
get_code_for_paper("2506.07524")
have("2506.07524")

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

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

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

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

Connect an agent — have() is free.