| build_multimodal_message |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/api_helpers.py code served (permissive licence) · get_code("516ac097490014a7") How it ranRan 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 base64
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple
import tempfile
import os
# Create a temporary directory with a test image file
temp_dir = tempfile.mkdtemp()
test_image_path = Path(temp_dir) / "test_image.png"
# Create a minimal valid PNG file (1x1 pixel, transparent)
png_data = bytes([
0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, # PNG signature
0x00, 0x00, 0x00, 0x0D, # IHDR chunk size
0x49, 0x48, 0x44, 0x52, # IHDR
0x00, 0x00, 0x00, 0x01, # width: 1
0x00, 0x00, 0x00, 0x01, # height: 1
0x08, 0x06, 0x00, 0x00, 0x00, # bit depth, color, compression, filter, interlace
0x1F, 0x15, 0xC4, 0x89, # CRC
0x00, 0x00, 0x00, 0x0A, # IDAT chunk size
0x49, 0x44, 0x41, 0x54, # IDAT
0x78, 0x9C, 0x63, 0x00, 0x01, 0x00, 0x00, 0x05,
0x00, 0x01, 0x0D, 0x0A, 0x2D, 0xB4, # CRC
0x00, 0x00, 0x00, 0x00, # IEND chunk size
0x49, 0x45, 0x4E, 0x44, # IEND
0xAE, 0x42, 0x60, 0x82 # CRC
])
test_image_path.write_bytes(png_data)
# Create another test image for visualization
viz_image_path = Path(temp_dir) / "viz_image.png"
viz_image_path.write_bytes(png_data)
# Create option image
option_image_path = Path(temp_dir) / "option_image.png"
option_image_path.write_bytes(png_data)
ARGS = {
'system_prompt': 'You are a helpful assistant.',
'question_text': 'What is shown in this image?',
'question_images': [
{'path': str(test_image_path)}
],
'visualization_images': [
{'path': str(viz_image_path)}
],
'options': [
{
'label': 'A',
'text': 'First option',
'image': {'path': str(option_image_path)}
},
{
'label': 'B',
'text': 'Second option'
}
],
'include_options': True,
'base_dir': Path(temp_dir),
'user_instruction': 'Please analyze this carefully.'
}
- 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
|
| count_input_images |
Ran ran, honoured the contract we drafted |
vampsbenchmark/VAMPS/run_api_no_tool.py code served (permissive licence) · get_code("900f576711781a2c") How it ranRan 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 torch
import numpy as np
torch.manual_seed(0)
# Construct a valid dictionary for the 'q' parameter
# The function accesses:
# - q.get('question_images') - expects a list or None
# - q.get('visualization_images') - expects a list or None
# - q.get('options') - expects a list of dicts or None, where each dict may have an 'image' key
q = {
'question_images': ['image1.jpg', 'image2.jpg'],
'visualization_images': ['viz1.jpg'],
'options': [
{'text': 'option1', 'image': 'opt_image1.jpg'},
{'text': 'option2'},
{'text': 'option3', 'image': 'opt_image3.jpg'},
]
}
include_visualization = True
ARGS = {
'q': q,
'include_visualization': include_visualization
}
- 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 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
|
| extract_brace_objects |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/extract_answers.py code served (permissive licence) · get_code("47193e7d3ea74677") How it ranRan 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 torch.nn as nn
torch.manual_seed(0)
# The function extract_brace_objects takes a single parameter: text (str)
# It parses through the text to extract complete brace-enclosed objects
# The function handles strings, escape characters, and nested braces
ARGS = {
"text": "{ 'key': 'value' } some text { 'nested': { 'obj': 1 } } end"
}
- 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 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
|
| extract_fenced_blocks |
Ran ran, honoured the contract we drafted |
vampsbenchmark/VAMPS/extract_answers.py code served (permissive licence) · get_code("3c4a8f34cfb9e838") How it ranRan 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 re
from typing import Any, Dict, Iterable, List, Optional, Tuple
def extract_fenced_blocks(text: str) -> List[str]:
return [m.group(1).strip() for m in re.finditer('```(?:json)?\\s*(.*?)```', text, flags=re.IGNORECASE | re.DOTALL)]
# Construct a valid text input with fenced code blocks
text_input = """
Here is some documentation:
json
{
"key": "value",
"number": 42
}
And here is some code:
def hello():
print("world")
Another JSON block:
{"nested": true}
"""
ARGS = {
"text": text_input
}
- 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
|
| load_b64_data_url |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/api_helpers.py code served (permissive licence) · get_code("fc4c531ce9ce6219") How it ranRan 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 base64
from pathlib import Path
import tempfile
import os
# Create a temporary directory with a test image file
temp_dir = tempfile.mkdtemp()
test_image_path = os.path.join(temp_dir, "test_image.png")
# Create a minimal valid PNG file (1x1 transparent pixel)
png_data = bytes([
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, # PNG signature
0x00, 0x00, 0x00, 0x0d, # IHDR chunk length
0x49, 0x48, 0x44, 0x52, # IHDR
0x00, 0x00, 0x00, 0x01, # width: 1
0x00, 0x00, 0x00, 0x01, # height: 1
0x08, 0x06, 0x00, 0x00, 0x00, # bit depth, color type, etc.
0x1f, 0x15, 0xc4, 0x89, # CRC
0x00, 0x00, 0x00, 0x0a, # IDAT chunk length
0x49, 0x44, 0x41, 0x54, # IDAT
0x78, 0x9c, 0x62, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, # compressed data
0xe5, 0x27, 0xde, 0xfc, # CRC
0x00, 0x00, 0x00, 0x00, # IEND chunk length
0x49, 0x45, 0x4e, 0x44, # IEND
0xae, 0x42, 0x60, 0x82 # CRC
])
with open(test_image_path, 'wb') as f:
f.write(png_data)
ARGS = {
"img_path": "test_image.png",
"base_dir": Path(temp_dir)
}
- 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
|
| normalize_answer |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/extract_answers.py code served (permissive licence) · get_code("5c64b982057e8460") How it ranRan 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
import re
from typing import Any, Dict, Iterable, List, Optional, Tuple
torch.manual_seed(0)
ARGS = {
"value": "hello world with spaces"
}
- 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
|
| normalize_reasoning_level |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/api_helpers.py code served (permissive licence) · get_code("b5eb8e1194b2f7b9") How it ranRan 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
import numpy as np
from typing import Optional
torch.manual_seed(0)
# Analyze the function: normalize_reasoning_level takes one parameter
# reasoning_level: Optional[str]
# The function processes it with:
# - (reasoning_level or 'none') - handles None case
# - .strip().lower() - string methods
# - dictionary lookup with aliases
# - membership test in a set of valid levels
# - returns a string
ARGS = {
'reasoning_level': 'high'
}
- 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 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
|
| parse_splits |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/download_vamps_dataset.py code served (permissive licence) · get_code("29cf6d97f5967dd8") How it ranRan 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
ARGS = {
'split_arg': 'Konkour_EN,Synth_FA'
}
- 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 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
|
| question_rules_text |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/desmos_agent_benchmark.py code served (permissive licence) · get_code("58476d2071ec9f0b") How it ranRan 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
torch.manual_seed(0)
def question_rules_text(max_completion_tokens_per_question: int, max_screenshots_per_question: int) -> str:
FINAL_RESPONSE_PREFIX = '<<FINAL>>'
FINAL_RESPONSE_TEMPLATE = '{"steps_summary":"<a concise step-by-step visual summary (visible observations + any tool actions) supporting your choice>","selected_option":"<selected_option>","errors":[]}'
FINAL_RESPONSE_EXACT = f'{FINAL_RESPONSE_PREFIX} {FINAL_RESPONSE_TEMPLATE}'
TOOL_REQUEST_PREFIX = '<<TOOL>>'
TOOL_REQUEST_TEMPLATE = '{"name":"desmos_plot","arguments":{"rationale":"<why this plot>","expressions":[{"latex":"<expr1>"}],"bounds":{"left":-10,"right":10,"bottom":-10,"top":10},"probe_points":[{"x":<x>,"y":<y>}],"label_intersections":"<bool>","label_extrema":"<bool>","label_intercepts":"<bool>","label_zeros":"<bool>"}}'
TOOL_REQUEST_EXACT = f'{TOOL_REQUEST_PREFIX} {TOOL_REQUEST_TEMPLATE}'
QUESTION_RULES_TEXT_BASE = f"Rules (follow strictly):\n1. Base your decision ONLY on visual evidence from the question, options, provided images, and Desmos plot screenshots. If reading a coordinate or feature from a graph, zoom in/out until it's clearly visible.\n2. Reason step by step from visual evidence only; each step must describe a visible observation, comparison, or direct visual read-off.\n3. Rely on visible cues such as intersections, axis/grid labels, relative positions, distances, and curve behavior.\n4. Do NOT solve analytically (no algebra/calculus/proofs/root-finding or heavy computation). Light arithmetic on clearly visible values is OK.\n5. Basic non-visual reasoning is allowed only to interpret visible evidence (for example, matching visible features to options or doing light arithmetic on visible labels), not to derive facts missing from the images/screenshots.\n6. Even if the answer looks easy to derive analytically, you must use visual evidence only.\n7. If the current visual evidence is insufficient and another screenshot is available, request another Desmos visualization instead of solving analytically or guessing.\n8. Do NOT fabricate missing information or make unsupported assumptions.\n9. You MUST make at least one successful desmos_plot call (it produces a screenshot) before giving the final answer.\n10. Each assistant message: either request a plot OR give the final answer (never both).\n11. If the current visual evidence is sufficient, output the final answer using the required {FINAL_RESPONSE_PREFIX} JSON format.\n12. Output must be ONLY the prefix followed by ONE valid JSON object (double-quoted keys/strings; no trailing commas). No extra text/markdown.\n13. Tool request format (replace <...> placeholders):\n{TOOL_REQUEST_EXACT}\n14. Final answer format (replace <...> placeholders):\n{FINAL_RESPONSE_EXACT}\n"
parts = [QUESTION_RULES_TEXT_BASE]
return '\n'.join((part for part in parts if part))
ARGS = {
"max_completion_tokens_per_question": 4096,
"max_screenshots_per_question": 5
}
- 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
|
| screenshot_budget_reminder_text |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/desmos_agent_benchmark.py code served (permissive licence) · get_code("2de9ef5f777383c1") How it ranRan 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.
# Analyzing the function screenshot_budget_reminder_text
# It takes one parameter: max_screenshots_per_question (int)
# The function uses it to:
# 1. Convert to int via int()
# 2. Take max with 0
# 3. Compare with <= 0
# 4. Format into an f-string if > 0
# Simple test cases for max_screenshots_per_question:
ARGS = {
'max_screenshots_per_question': 5
}
- 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
|
| tool_result_prompt |
Ran ran; our contract draft was wrong, not the code |
vampsbenchmark/VAMPS/desmos_agent_benchmark.py code served (permissive licence) · get_code("900014b7738a31f5") How it ranRan 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
# Set seed for reproducibility
torch.manual_seed(0)
# The function tool_result_prompt takes two parameters:
# 1. max_screenshots_per_question: int
# 2. screenshots_so_far: int
# Construct valid arguments
ARGS = {
"max_screenshots_per_question": 5,
"screenshots_so_far": 2
}
- 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
|