| active_bin_mask |
Ran ran, honoured the contract we drafted |
uw-syfi/TraceLab/artifacts/utils/cdf.py code served (permissive licence) · get_code("f89696f4255ece75") 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 int; 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
# Define small stand-in panels
# Each panel is a tuple of (title: str, count_share: list[float], mass_share: list[float])
panels = [
("Panel A", [0.1, 0.6, 0.3, 0.2], [0.2, 0.7, 0.1, 0.05]),
("Panel B", [0.05, 0.4, 0.8, 0.3], [0.1, 0.5, 0.9, 0.15]),
]
n_bins = 4
ARGS = {
"panels": panels,
"n_bins": n_bins,
"visibility": 0.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 list, ndim 1, dtype family int — 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
|
| build_command |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/run_all.py code served (permissive licence) · get_code("f8ea11b6490fbb9f") 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 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.
from dataclasses import dataclass
from pathlib import Path
import tempfile
@dataclass(frozen=True)
class Experiment:
category: str
name: str
script: str
style: str
data: str = 'jsonl'
after: str | tuple[str, ...] = ''
ARGS = {
'exp': Experiment(
category='test_category',
name='test_experiment',
script='scripts/test_script.py',
style='stdout',
data='jsonl',
after=''
),
'python': 'python',
'jsonl': Path('/tmp/test_data.jsonl'),
'timing': Path('/tmp/test_timing.csv'),
'db': Path('/tmp/test_db.duckdb')
}
- 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
|
| build_command |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/validators/run_all.py code served (permissive licence) · get_code("659ac4c28fac3413") 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.
from dataclasses import dataclass
from pathlib import Path
import tempfile
@dataclass(frozen=True)
class Validator:
category: str
name: str
script: str
# Create temporary directory to serve as VALIDATORS_DIR
temp_dir = tempfile.mkdtemp()
VALIDATORS_DIR = Path(temp_dir)
# Create a dummy script file
dummy_script = VALIDATORS_DIR / "validator_script.py"
dummy_script.write_text("print('dummy validator')")
# Create a temporary database path
with tempfile.TemporaryDirectory() as db_temp:
db_path = Path(db_temp) / "test.db"
# Build the arguments dictionary
ARGS = {
'item': Validator(
category='test_category',
name='test_validator',
script='validator_script.py'
),
'python': 'python',
'database': db_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 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
|
| command_chains |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/command_chains.py code served (permissive licence) · get_code("6a6fa8a2d403228a") 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 DuckDBPyConnection. 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 duckdb
# Create a minimal DuckDB connection with the required schema and sample data
con = duckdb.connect(':memory:')
# Create the required tables with minimal schema
con.execute('''
CREATE TABLE rounds (
round_pk INTEGER,
provider VARCHAR,
"user" VARCHAR,
session_id VARCHAR
)
''')
con.execute('''
CREATE TABLE tool_calls (
round_pk INTEGER,
tool_index INTEGER,
tool_name VARCHAR,
tool_call_id VARCHAR,
continuation_of_tool_call_id VARCHAR,
emitted_at TIMESTAMP,
result_at TIMESTAMP,
command_status VARCHAR,
command_exit_code INTEGER,
tool_internal_latency_ms DOUBLE,
tool_wall_latency_ms DOUBLE
)
''')
# Insert sample data
con.execute('''
INSERT INTO rounds VALUES
(1, 'codex', 'user1', 'session1'),
(2, 'codex', 'user1', 'session1')
''')
con.execute('''
INSERT INTO tool_calls VALUES
(1, 0, 'exec_command', 'call1', NULL, '2024-01-01 10:00:00', '2024-01-01 10:00:05', 'finished', 0, 5000.0, NULL),
(1, 1, 'write_stdin', 'call2', 'call1', '2024-01-01 10:00:01', '2024-01-01 10:00:03', 'finished', 0, 2000.0, NULL),
(2, 0, 'exec_command', 'call3', NULL, '2024-01-01 10:00:10', NULL, 'running', NULL, NULL, NULL)
''')
ARGS = {
'con': con
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- duckdb — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type DuckDBPyConnection — a DuckDBPyConnection output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DuckDBPyConnection 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
|
| dependencies |
Ran ran, honoured the contract we drafted |
uw-syfi/TraceLab/artifacts/run_all.py code served (permissive licence) · get_code("432e86eab0bbcfe5") 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 tuple, 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
from dataclasses import dataclass
@dataclass(frozen=True)
class Experiment:
category: str
name: str
script: str
style: str
data: str = 'jsonl'
after: str | tuple[str, ...] = ''
def dependencies(experiment: Experiment) -> tuple[str, ...]:
if isinstance(experiment.after, str):
return (experiment.after,) if experiment.after else ()
return experiment.after
# Test case 1: after is empty string
exp1 = Experiment(
category='test_category',
name='test_name',
script='test_script.py',
style='test_style',
data='jsonl',
after=''
)
# Test case 2: after is non-empty string
exp2 = Experiment(
category='cat2',
name='name2',
script='script2.py',
style='style2',
data='jsonl',
after='dependency_name'
)
# Test case 3: after is tuple of strings
exp3 = Experiment(
category='cat3',
name='name3',
script='script3.py',
style='style3',
data='jsonl',
after=('dep1', 'dep2', 'dep3')
)
ARGS = {
'experiment': exp1
}
- 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 tuple, ndim 1, dtype family float — a tuple 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
|
| display_command |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/validators/run_all.py code served (permissive licence) · get_code("95f8c2a43ec9ef33") 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 shlex
def display_command(cmd: list[str]) -> str:
if len(cmd) >= 5 and cmd[1] == '-c':
parts = [cmd[0], '-c', '<global-shim>', *cmd[3:]]
else:
parts = cmd
return ' '.join((shlex.quote(c) for c in parts))
# Setup: construct valid arguments
ARGS = {
'cmd': ['python', '-c', 'some code', 'arg1', 'arg2']
}
- 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
|
| extract_from_png |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/png_sidecar.py code served (permissive licence) · get_code("3988633bef0e1bc5") 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 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 tempfile
from pathlib import Path
from PIL import Image, PngImagePlugin
import io
# Create a temporary PNG file with embedded text metadata
temp_dir = tempfile.mkdtemp()
png_path = Path(temp_dir) / "test_image.png"
# Create a simple image with embedded text
img = Image.new('RGB', (10, 10), color='red')
# Add text metadata with sidecar prefix
pnginfo = PngImagePlugin.PngInfo()
pnginfo.add_text("sidecar:key1", "value1")
pnginfo.add_text("sidecar:key2", "value2")
pnginfo.add_text("regular_key", "regular_value")
# Save the PNG with metadata
img.save(png_path, pnginfo=pnginfo)
ARGS = {
'png_path': png_path,
'only_sidecar': True,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL — 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
|
| first_timing_event_type |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/growth.py code served (permissive licence) · get_code("0807d947f333ba70") 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
# The function expects a dict with a 'timing_events' key
# that contains a list of dicts, each potentially with an 'event_type' key
ARGS = {
'row': {
'timing_events': [
{
'event_type': 'compute',
'timestamp': 1234567890
},
{
'event_type': 'io',
'timestamp': 1234567891
}
],
'other_field': 'some_value'
}
}
- 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
|
| gfm_table |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/md_table.py code served (permissive licence) · get_code("b520fe6c79f19122") 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 Iterable, Sequence
torch.manual_seed(0)
# Construct arguments for gfm_table function
headers = ["Name", "Age", "Score"]
rows = [
["Alice", "25", "95.5"],
["Bob", "30", "87.2"],
["Charlie", "28", "92.1"]
]
align = ['l', 'c', 'r']
ARGS = {
'headers': headers,
'rows': rows,
'align': align
}
- 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
|
| infer_first_token_tick |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
uw-syfi/TraceLab/artifacts/utils/formatters.py code served (permissive licence) · get_code("a5fdf6c5429928db") 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 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
ARGS = {
"values": [0.5, 2048.0, 512.0, -100.0, 1024.0]
}
- 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 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
|
| int_field |
Ran ran, honoured the contract we drafted |
uw-syfi/TraceLab/artifacts/utils/growth.py code served (permissive licence) · get_code("47d806a5a37fa81e") 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
# Construct test cases for int_field function
# The function takes a dict and a key, extracts a value, and returns it if it's an int (but not bool), else 0
# Test case 1: row with an integer value at the key
row_1 = {"name": "Alice", "age": 42, "active": True}
key_1 = "age"
# Test case 2: row with a boolean value (should return 0, not the bool)
row_2 = {"name": "Bob", "is_valid": True, "count": 5}
key_2 = "is_valid"
# Test case 3: row with a non-integer value (should return 0)
row_3 = {"value": 3.14, "name": "Charlie"}
key_3 = "value"
# Test case 4: row where key doesn't exist (should return 0)
row_4 = {"x": 10}
key_4 = "missing_key"
# For the function parameters, we need:
# - row: dict[str, Any]
# - key: str
# Using the first test case
ARGS = {
"row": {"name": "Alice", "age": 42, "is_active": False, "score": 3.14},
"key": "age"
}
- 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
|
| matches |
Ran ran, violated the contract we drafted |
uw-syfi/TraceLab/validators/run_all.py code served (permissive licence) · get_code("17cd6b7a406645cf") 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 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
from dataclasses import dataclass
@dataclass(frozen=True)
class Validator:
category: str
name: str
script: str
# Create a Validator instance
validator_item = Validator(
category="tests",
name="regression",
script="test_script.py"
)
# Define ARGS dict with all parameters
ARGS = {
"item": validator_item,
"only": "tests/regression"
}
- 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
|
| numeric_sample |
Ran ran, honoured the contract we drafted |
uw-syfi/TraceLab/artifacts/utils/accumulators.py code served (permissive licence) · get_code("b6d9854904ad1b10") 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 math
from typing import Any
torch.manual_seed(0)
# The function numeric_sample takes a list of values and filters them through safe_float
# It needs a list containing various types: some convertible to finite floats, some not
ARGS = {
"values": [
42, # int -> valid float
3.14, # float -> valid float
"2.71", # string convertible to float -> valid float
None, # None -> filtered out
True, # bool -> filtered out
False, # bool -> filtered out
"not a number", # non-numeric string -> filtered out
float('inf'), # infinity -> filtered out
float('-inf'), # negative infinity -> filtered out
float('nan'), # NaN -> filtered out
1.5, # float -> valid float
"99", # string convertible to float -> valid float
]
}
- 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
|
| parse_ts |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/timing.py code served (permissive licence) · get_code("ddcdda222f3e4008") 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 datetime. 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 typing import Any
from datetime import datetime
def parse_ts(value: Any) -> datetime | None:
if not isinstance(value, str) or not value:
return None
try:
return datetime.fromisoformat(value.replace('Z', '+00:00'))
except ValueError:
return None
# Test cases for parse_ts
ARGS = {
"value": "2023-10-15T12:30:45Z"
}
- 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 datetime — a datetime output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a datetime 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
|
| percentile |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
uw-syfi/TraceLab/artifacts/utils/growth.py code served (permissive licence) · get_code("f5d51d90d1032ddd") 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 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 math
def percentile(values: list[float], quantile: float) -> float | None:
if not values:
return None
if quantile <= 0:
return min(values)
if quantile >= 1:
return max(values)
ordered = sorted(values)
index = (len(ordered) - 1) * quantile
lower_index = math.floor(index)
upper_index = math.ceil(index)
if lower_index == upper_index:
return ordered[lower_index]
lower_weight = upper_index - index
upper_weight = index - lower_index
return ordered[lower_index] * lower_weight + ordered[upper_index] * upper_weight
ARGS = {
"values": [1.5, 2.3, 3.7, 4.2, 5.1, 6.8, 7.4],
"quantile": 0.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 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
|
| provider_order |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/style.py code served (permissive licence) · get_code("d59ca54bed234a5a") 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
from typing import Any
PROVIDER_COMPARISON_ORDER = ('claude', 'codex')
def provider_order(providers: Any) -> list[str]:
names = list(providers.keys()) if isinstance(providers, dict) else list(providers)
preferred = [name for name in PROVIDER_COMPARISON_ORDER if name in names]
remaining = sorted((name for name in names if name not in preferred))
return [*preferred, *remaining]
# Test case 1: dict input
providers_dict = {
'claude': 'model1',
'gpt4': 'model2',
'codex': 'model3',
'bert': 'model4'
}
ARGS = {
'providers': providers_dict
}
- 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
|
| provider_title |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/style.py code served (permissive licence) · get_code("8087beab6af3c9a1") 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
def provider_title(provider: str) -> str:
return provider[:1].upper() + provider[1:] if provider else provider
# Test cases for the provider_title function
# The function takes a string and capitalizes the first character
# It handles empty strings by returning them as-is
ARGS = {
"provider": "openai"
}
- 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
|
| repo_relative |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/run_all.py code served (permissive licence) · get_code("bcc799a03c74e352") 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 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
import os
# Create a temporary directory structure to simulate a repo
with tempfile.TemporaryDirectory() as tmpdir:
repo_root = Path(tmpdir)
artifacts_dir = repo_root / "artifacts"
artifacts_dir.mkdir(exist_ok=True)
# Create a test relative path
test_relative_path = Path("some/relative/path.txt")
# Create a test absolute path
test_absolute_path = Path("/absolute/path/to/file.txt")
# Build ARGS with both relative and absolute path examples
# The function expects a Path object
ARGS = {
"path": test_relative_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
|
| response_trigger_user_message_timestamp |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/timing.py code served (permissive licence) · get_code("d2e7537203b6e692") 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 datetime. 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 datetime import datetime, timezone
def response_trigger_user_message_timestamp(row: dict) -> datetime | None:
"""Return the latest user input that can trigger this row's model output."""
events = row.get('timing_events')
if not isinstance(events, list):
return None
user_timestamps: list[datetime] = []
output_timestamps: list[datetime] = []
for event in events:
if not isinstance(event, dict):
continue
timestamp = parse_ts(event.get('timestamp'))
if timestamp is None:
continue
event_type = event.get('event_type')
if event_type == 'user_message':
user_timestamps.append(timestamp)
elif event_type in MODEL_OUTPUT_EVENT_TYPES:
output_timestamps.append(timestamp)
if not user_timestamps or not output_timestamps:
return None
first_output_at = min(output_timestamps)
candidate_users = [timestamp for timestamp in user_timestamps if timestamp <= first_output_at]
if not candidate_users:
return None
return max(candidate_users)
MODEL_OUTPUT_EVENT_TYPES = {'reasoning', 'text', 'tool_call'}
def parse_ts(value) -> datetime | None:
if not isinstance(value, str) or not value:
return None
try:
return datetime.fromisoformat(value.replace('Z', '+00:00'))
except ValueError:
return None
# Create a valid row with timing_events
row = {
'timing_events': [
{
'event_type': 'user_message',
'timestamp': '2024-01-15T10:00:00+00:00'
},
{
'event_type': 'user_message',
'timestamp': '2024-01-15T10:05:00+00:00'
},
{
'event_type': 'reasoning',
'timestamp': '2024-01-15T10:10:00+00:00'
},
{
'event_type': 'text',
'timestamp': '2024-01-15T10:11:00+00:00'
}
]
}
ARGS = {
'row': row
}
- 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 datetime — a datetime output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a datetime 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_float |
Ran ran, honoured the contract we drafted |
uw-syfi/TraceLab/artifacts/utils/accumulators.py code served (permissive licence) · get_code("74d94aacaaaaf474") 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 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 math
from typing import Any
# The function safe_float takes a single parameter 'value' of type Any
# It checks if value is None, if it's a bool, tries to convert to float,
# and validates that the result is finite.
# We need to test with various input types to demonstrate the function works
ARGS = {
"value": 42
}
- 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 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
|
| sample_quantiles |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
uw-syfi/TraceLab/artifacts/utils/accumulators.py code served (permissive licence) · get_code("333d2218cad0f963") 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 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 numpy as np
# Define ARGS with all parameters for sample_quantiles
ARGS = {
'values': [1.5, 2.3, 3.1, 4.7, 5.2, 6.8, 7.9, 8.4],
'suffix': '_test'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — 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
|
| section_tables |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/md_table.py code served (permissive licence) · get_code("e048aa3242805024") 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
# Construct arguments for section_tables
headers = ["Metric", "Value", "Count"]
# Create sections as an iterable of (label, rows)
# Each section has a label and an iterable of row sequences
section1_rows = [
["accuracy", "0.95", "1000"],
["loss", "0.05", "1000"],
]
section2_rows = [
["precision", "0.92", "500"],
["recall", "0.88", "500"],
]
section3_rows = [
["f1_score", "0.90", "750"],
]
sections = [
("Per Session", section1_rows),
("Per Request", section2_rows),
("Per Step", section3_rows),
]
align = ["l", "r", "c"]
ARGS = {
"headers": headers,
"sections": sections,
"align": align,
}
- 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
|
| short_label |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/style.py code served (permissive licence) · get_code("c3e49bcc0d81abe2") 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
# Define ARGS dict with valid arguments for short_label function
ARGS = {
"value": "This is a test string that is longer than the default maximum length",
"max_len": 36
}
- 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
|
| timestamp_string |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/validators/trace_rows.py code served (permissive licence) · get_code("c96db2998de21954") 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.
from datetime import datetime, timedelta
EPOCH = datetime(1970, 1, 1)
def timestamp_string(epoch_microseconds: int | None) -> str | None:
if epoch_microseconds is None:
return None
moment = EPOCH + timedelta(microseconds=epoch_microseconds)
return moment.isoformat(timespec='milliseconds') + 'Z'
ARGS = {
'epoch_microseconds': 1000000
}
- 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
|
| token_axis_value |
Ran ran, honoured the contract we drafted |
uw-syfi/TraceLab/artifacts/utils/formatters.py code served (permissive licence) · get_code("5496a32c32b3dc87") 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 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 math
def token_axis_value(value: float, first_tick: float) -> float:
if value <= 0:
return 0.0
if value < first_tick:
return value / first_tick
return 1.0 + math.log2(value / first_tick)
# Setup code
ARGS = {
"value": 5.0,
"first_tick": 2.0
}
- 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 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
|
| token_axis_values |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/formatters.py code served (permissive licence) · get_code("5baecdef0ebd5f29") 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 ndarray, ndim 1, dtype family float, shape (8,) 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 numpy as np
# Construct valid arguments for token_axis_values
# The function takes:
# 1. values: list[float] | np.ndarray - array of numerical values
# 2. first_tick: float - a threshold/reference value for scaling
# Create a test array with mixed values (some positive, some zero, some negative)
values = np.array([0.0, 0.5, 1.0, 2.0, 4.0, 8.0, -1.0, -2.0])
# first_tick should be a positive float that serves as a reference point
first_tick = 1.0
ARGS = {
"values": values,
"first_tick": first_tick
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 1, dtype family float, shape (8,) — shape (8,) 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
|
| user_message_start_timestamp |
Ran ran; our contract draft was wrong, not the code |
uw-syfi/TraceLab/artifacts/utils/timing.py code served (permissive licence) · get_code("6b201efab7fb49b7") 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 datetime. 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 typing import Any
from datetime import datetime
def parse_ts(value: Any) -> datetime | None:
if not isinstance(value, str) or not value:
return None
try:
return datetime.fromisoformat(value.replace('Z', '+00:00'))
except ValueError:
return None
def user_message_start_timestamp(row: dict[str, Any]) -> datetime | None:
events = row.get('timing_events')
if not isinstance(events, list):
return None
for event in events:
if not isinstance(event, dict):
continue
event_type = event.get('event_type')
if not isinstance(event_type, str):
continue
if event_type != 'user_message':
return None
return parse_ts(event.get('timestamp'))
return None
# Setup code to construct valid arguments
ARGS = {
'row': {
'timing_events': [
{
'event_type': 'user_message',
'timestamp': '2024-01-15T10:30:45+00:00'
}
]
}
}
- 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 datetime — a datetime output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a datetime 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
|
| main |
Not yet run unverified (harvested, no recorded run) |
uw-syfi/TraceLab/artifacts/utils/png_sidecar.py code served (permissive licence) · get_code("9751953fbd7bb868") How it ran |
| make_self_contained |
Not yet run unverified (harvested, no recorded run) |
uw-syfi/TraceLab/artifacts/utils/png_sidecar.py code served (permissive licence) · get_code("41a6007561832b83") How it ran |