| classify_failure |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/harness.py code served (permissive licence) · get_code("f04da5ba71071604") 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
torch.manual_seed(0)
# The function classify_failure takes two string parameters:
# exc_name: str - the exception class name
# exc_str: str - the exception message/string representation
# Test case 1: Normal error case
exc_name_1 = "ValueError"
exc_str_1 = "Invalid input value"
# Test case 2: Container died case
exc_name_2 = "ContainerDied"
exc_str_2 = "Container process exited"
# Test case 3: OOM case
exc_name_3 = "RuntimeError"
exc_str_3 = "CUDA_ERROR_OUT_OF_MEMORY: out of memory"
# Test case 4: Timeout case
exc_name_4 = "WatchdogTimeout"
exc_str_4 = "Process exceeded timeout threshold"
# Test case 5: NaN case
exc_name_5 = "FloatingPointError"
exc_str_5 = "NaN detected in computation"
# Use one of the test cases for ARGS
ARGS = {
"exc_name": "RuntimeError",
"exc_str": "CUDA_ERROR_OUT_OF_MEMORY: out of memory"
}
- 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
|
| container_id_from_tesseract |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/memory.py code served (permissive licence) · get_code("87245749026bba85") 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 torch.nn as nn
# Mock Tesseract handle with container_info() method
class MockTesseractWithContainer:
def container_info(self):
# Returns an object with a 'name' attribute
class ContainerInfo:
def __init__(self, name):
self.name = name
return ContainerInfo("my_container_123")
# Mock Tesseract handle without container (raises RuntimeError)
class MockTesseractWithoutContainer:
def container_info(self):
raise RuntimeError("No container associated with this handle")
# Mock Tesseract handle with no container_info method (raises AttributeError)
class MockTesseractNoMethod:
pass
# Test case 1: Valid handle with container
t_with_container = MockTesseractWithContainer()
ARGS = {
"t": t_with_container
}
- 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
|
| discover_solvers |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/config.py code served (permissive licence) · get_code("6b4521667afd06db") 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
import shutil
from pathlib import Path
import yaml
# Create a temporary directory structure with solver configs
tmpdir = tempfile.mkdtemp()
tesseract_dir = Path(tmpdir)
# Create a solver subdirectory with a tesseract_config.yaml
solver_dir = tesseract_dir / "jax-fem"
solver_dir.mkdir(parents=True, exist_ok=True)
# Create a valid tesseract_config.yaml with metadata.mosaic block
config = {
"description": "JAX-based finite element solver",
"metadata": {
"mosaic": {
"name": "JAX-FEM",
"backend": "jax",
"family": "fem",
"scheme": "FEM HEX8",
"ad_strategy": "autodiff",
"differentiable": True,
"uses_gpu": False,
"internal_dtype": "float32",
"doc_url": "https://example.com/jax-fem"
}
}
}
config_file = solver_dir / "tesseract_config.yaml"
with open(config_file, 'w') as f:
yaml.dump(config, f)
# Create another solver with minimal config
solver_dir2 = tesseract_dir / "pytorch-solver"
solver_dir2.mkdir(parents=True, exist_ok=True)
config2 = {
"description": "PyTorch-based solver",
"metadata": {
"mosaic": {
"name": "PyTorch Solver"
}
}
}
config_file2 = solver_dir2 / "tesseract_config.yaml"
with open(config_file2, 'w') as f:
yaml.dump(config2, f)
# Define TESSERACTS_DIR as a module-level constant
import sys
from types import ModuleType
mock_module = ModuleType('mock_module')
mock_module.TESSERACTS_DIR = tesseract_dir
sys.modules['mock_module'] = mock_module
# Set TESSERACTS_DIR in the namespace where discover_solvers will look for it
TESSERACTS_DIR = tesseract_dir
ARGS = {
"tesseract_dir": tesseract_dir
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — 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
|
| done_solvers_in_partial |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/partial.py code served (permissive licence) · get_code("e60d6a6e67b7a0f7") 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 set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import json
from pathlib import Path
import tempfile
import os
# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()
# Test case 1: File with 'by_solver' schema - some solvers complete
test_file_1 = Path(temp_dir) / "test_by_solver.json"
data_by_solver = {
'by_solver': {
'solver_a': {'status': 'complete', 'in_progress': False},
'solver_b': {'status': 'complete', 'in_progress': False},
'solver_c': {'status': 'incomplete', 'in_progress': True},
}
}
with open(test_file_1, 'w') as f:
json.dump(data_by_solver, f)
# Test case 2: File with 'by_param' schema (sweep style)
test_file_2 = Path(temp_dir) / "test_by_sweep.json"
data_by_sweep = {
'by_param': {
'param_bucket_1': {'solver_x': {}, 'solver_y': {}, 'solver_z': {}},
'param_bucket_2': {'solver_x': {}, 'solver_y': {}},
'param_bucket_3': {'solver_x': {}, 'solver_y': {}, 'solver_z': {}},
}
}
with open(test_file_2, 'w') as f:
json.dump(data_by_sweep, f)
# Test case 3: Non-existent file
test_file_3 = Path(temp_dir) / "nonexistent.json"
# Test case 4: Malformed JSON
test_file_4 = Path(temp_dir) / "malformed.json"
with open(test_file_4, 'w') as f:
f.write("{ invalid json }")
# Test case 5: File with non-dict data
test_file_5 = Path(temp_dir) / "non_dict.json"
with open(test_file_5, 'w') as f:
json.dump(["not", "a", "dict"], f)
# Test case 6: Empty sweep buckets
test_file_6 = Path(temp_dir) / "empty_sweep.json"
data_empty_sweep = {
'by_N': {}
}
with open(test_file_6, 'w') as f:
json.dump(data_empty_sweep, f)
ARGS = {
'partial_path': test_file_1
}
- 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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
|
| experiment_dir |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/io.py code served (permissive licence) · get_code("a12a50ab0d1f3099") 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.
import os
from pathlib import Path
import tempfile
# Set up a temporary directory for results
temp_dir = tempfile.mkdtemp()
os.environ['MOSAIC_RESULTS_DIR'] = temp_dir
# Construct arguments for experiment_dir
results_dir_path = Path(temp_dir)
problem = "classification"
suite = "benchmark"
experiment = "baseline"
suffix = "_v1"
ARGS = {
'results_dir': results_dir_path,
'problem': problem,
'suite': suite,
'experiment': experiment,
'suffix': suffix,
}
- 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
|
| filter_resumable_solvers |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/partial.py code served (permissive licence) · get_code("be7614ac0638e125") 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 json
import tempfile
from pathlib import Path
# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
out_dir = Path(temp_dir)
# Create a result_partial.json file with some completed solvers
partial_file = out_dir / 'result_partial.json'
partial_data = {
'by_solver': {
'solver_a': {'status': 'complete'},
'solver_b': {'in_progress': True},
'solver_c': {'status': 'complete'}
}
}
with open(partial_file, 'w') as f:
json.dump(partial_data, f)
# Define the arguments
ARGS = {
'solver_names': ['solver_a', 'solver_b', 'solver_c', 'solver_d'],
'out_dir': out_dir,
'overrides': {'resume': True}
}
- 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
|
| filter_solvers |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/cell_filter.py code served (permissive licence) · get_code("1d66d88869d8f70d") 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 threading
_state = threading.local()
def get_active() -> dict[tuple[str, str], bool] | None:
"""Return the active per-cell filter, or ``None`` if no filter is set."""
return getattr(_state, 'filter', None)
def filter_solvers(exp_key: str, solver_names: list[str]) -> list[str]:
"""Prune *solver_names* to those matching the active filter for *exp_key*.
``exp_key`` must be the full registered key (``<suite>/<experiment>``).
Returns *solver_names* unchanged when no filter is active.
"""
f = get_active()
if f is None:
return solver_names
return [s for s in solver_names if (exp_key, s) in f]
ARGS = {
'exp_key': 'suite/experiment',
'solver_names': ['solver_a', 'solver_b', 'solver_c']
}
- 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
|
| harness_fn_hash |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/io.py code served (permissive licence) · get_code("f894a5539e111ed6") 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 ast
import hashlib
import inspect
def harness_fn_hash(fn: object) -> str:
"""SHA-256 (first 16 hex chars) of a function's normalised AST.
Detects when the ``run_<experiment>`` function that produced a
``result.json`` has been edited since the result was saved. The hash is
of an ``ast.dump`` with docstrings stripped, so that whitespace, comment,
and docstring-only edits — which cannot affect runtime behaviour — do not
invalidate previously-saved results. Behavioural edits (new statements,
renamed locals, reordered expressions) still flip the hash because
``ast.dump`` preserves identifier names and statement order.
Falls back to the raw-source SHA on ``SyntaxError`` so pathological
sources (e.g. decorator-generated closures whose ``inspect.getsource``
returns partial text) still yield a stable fingerprint rather than the
empty string.
"""
try:
src = inspect.getsource(fn)
except (OSError, TypeError):
return ''
try:
tree = ast.parse(src)
except SyntaxError:
return hashlib.sha256(src.encode('utf-8')).hexdigest()[:16]
for node in ast.walk(tree):
if isinstance(node, ast.Module | ast.FunctionDef | ast.AsyncFunctionDef | ast.ClassDef):
body = getattr(node, 'body', None)
if body and isinstance(body[0], ast.Expr) and isinstance(body[0].value, ast.Constant) and isinstance(body[0].value.value, str):
body.pop(0)
normalised = ast.dump(tree, annotate_fields=False, include_attributes=False)
return hashlib.sha256(normalised.encode('utf-8')).hexdigest()[:16]
def sample_function():
"""This is a sample function for testing."""
x = 1
y = 2
return x + y
def lambda_fn(a):
return a * 2
ARGS = {
'fn': sample_function
}
- 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
|
| has_vjp |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
pasteurlabs/mosaic/mosaic/benchmarks/core/config.py code served (permissive licence) · get_code("668c823c08f62e44") 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, field
from enum import Enum
from typing import Any, Callable
from collections.abc import Callable
class AdStrategy(str, Enum):
"""How a solver computes gradients."""
AUTODIFF = 'autodiff'
ADJOINT = 'adjoint'
HYBRID = 'hybrid'
@dataclass
class SolverSpec:
"""Runtime descriptor for a single solver registered in a Problem."""
dir: str
color: str
name: str
scheme: str
backend: str
family: str = ''
linestyle: str | tuple | None = None
marker: str | None = None
description: str = ''
doc_url: str = ''
input_overrides: dict[str, Any] = field(default_factory=dict)
uses_gpu: bool = True
image_tag: str | None = None
normalize_output: Callable | None = None
differentiable: bool | None = None
ad_strategy: AdStrategy | None = None
internal_dtype: str = 'float32'
def __post_init__(self) -> None:
if isinstance(self.ad_strategy, str) and (not isinstance(self.ad_strategy, AdStrategy)):
self.ad_strategy = AdStrategy(self.ad_strategy)
@property
def key(self) -> str:
"""Underscore-normalised slug for this solver (e.g. ``"ins_jl"``)."""
return self.dir.replace('-', '_')
def has_vjp(spec: SolverSpec) -> bool:
"""Return True if the solver exposes a ``vector_jacobian_product`` endpoint."""
explicit = getattr(spec, 'differentiable', None)
if explicit is not None:
return bool(explicit)
from tesseract_core import Tesseract
tag = spec.image_tag
if not tag:
return False
try:
with Tesseract.from_image(tag) as t:
return 'vector_jacobian_product' in t.available_endpoints
except Exception:
return False
# Create a minimal SolverSpec instance with differentiable=True to test the fast path
spec_with_vjp = SolverSpec(
dir="test-solver",
color="blue",
name="TestSolver",
scheme="direct",
backend="numpy",
family="test_family",
linestyle="solid",
marker="o",
description="A test solver",
doc_url="https://example.com",
input_overrides={},
uses_gpu=False,
image_tag=None,
normalize_output=None,
differentiable=True,
ad_strategy=AdStrategy.AUTODIFF,
internal_dtype='float32'
)
ARGS = {
'spec': spec_with_vjp
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- tesseract_core, 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
|
| is_kernel |
Ran ran, violated the contract we drafted |
pasteurlabs/mosaic/mosaic/benchmarks/core/experiment.py code served (permissive licence) · get_code("a019b547c41d0c47") 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
def kernel(fn):
"""Decorator that marks a function as a kernel."""
setattr(fn, '_mosaic_kernel_config', True)
return fn
@kernel
def sample_kernel_fn():
pass
def non_kernel_fn():
pass
ARGS = {
'fn': sample_kernel_fn
}
- 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
|
| make_sweep_progress |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/console.py code served (permissive licence) · get_code("c7644ef70d6de87f") 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 Progress. 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
from rich.console import Console
from rich.progress import Progress, SpinnerColumn, TextColumn, TimeElapsedColumn
torch.manual_seed(0)
console = Console()
ARGS = {
"total": 42
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- rich, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Progress — a Progress output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Progress 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
|
| merge_results |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/experiment.py code served (permissive licence) · get_code("4b4906aa09d23427") 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.
# Construct valid arguments for merge_results function
# The function takes two dicts (a and b) representing result files with schema_version=1
ARGS = {
'a': {
'schema_version': 1,
'results': [
{
'solver': 'solver_a',
'sweep_value': 1.0,
'metric': 0.95
},
{
'solver': 'solver_b',
'sweep_value': 2.0,
'metric': 0.87
}
],
'provenance': {
'tesseract_hashes': {'hash_key_1': 'value_1'},
'wall_time_s': {'time_key_1': 10.5}
},
'extras': {
'extra_a': 'data_a'
}
},
'b': {
'schema_version': 1,
'results': [
{
'solver': 'solver_c',
'sweep_value': 3.0,
'metric': 0.92
},
{
'solver': 'solver_b',
'sweep_value': 2.0,
'metric': 0.89
}
],
'provenance': {
'tesseract_hashes': {'hash_key_2': 'value_2'},
'wall_time_s': {'time_key_2': 15.3}
},
'extras': {
'extra_b': 'data_b'
}
}
}
- 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
|
| random_direction |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/experiment.py code served (permissive licence) · get_code("117f2ed3f7ff3866") 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 ArrayImpl, ndim 2, dtype family float, shape (4, 3) 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 jax
import jax.numpy as jnp
# Create a JAX random key
key = jax.random.PRNGKey(0)
# Define the shape for the random direction
shape = (4, 3)
# Construct the ARGS dictionary
ARGS = {
"shape": shape,
"key": key,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- jax — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ArrayImpl, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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
|
| tesseract_content_hash |
Ran ran; our contract draft was wrong, not the code |
pasteurlabs/mosaic/mosaic/benchmarks/core/io.py code served (permissive licence) · get_code("1ad0901d352e652a") 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 tempfile
from pathlib import Path
# Create a temporary directory structure with some Python files
temp_dir = tempfile.TemporaryDirectory()
tesseract_dir = Path(temp_dir.name)
# Create some test files
(tesseract_dir / "module1.py").write_text("def foo():\n # This is a comment\n return 42\n")
(tesseract_dir / "module2.py").write_text("def bar():\n x = 1\n return x\n")
(tesseract_dir / "data.txt").write_bytes(b"some data content")
# Create a subdirectory with more files
subdir = tesseract_dir / "submodule"
subdir.mkdir()
(subdir / "nested.py").write_text("class MyClass:\n pass\n")
# Create excluded directories that should be ignored
pycache_dir = tesseract_dir / "__pycache__"
pycache_dir.mkdir()
(pycache_dir / "module1.cpython-39.pyc").write_bytes(b"compiled bytecode")
ARGS = {
"tesseract_dir": tesseract_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
|
| load_reference |
Not yet run unverified (harvested, no recorded run) |
pasteurlabs/mosaic/mosaic/benchmarks/core/reference.py code served (permissive licence) · get_code("f5f3ef2a4014ece6") How it ran |
| reference_exists |
Not yet run unverified (harvested, no recorded run) |
pasteurlabs/mosaic/mosaic/benchmarks/core/reference.py code served (permissive licence) · get_code("1f8353d16228db21") How it ran |
| sample_container_ram_mib |
Not yet run unverified (harvested, no recorded run) |
pasteurlabs/mosaic/mosaic/benchmarks/core/memory.py code served (permissive licence) · get_code("886299a8b800d150") How it ran |
| sample_vram_mib |
Not yet run unverified (harvested, no recorded run) |
pasteurlabs/mosaic/mosaic/benchmarks/core/memory.py code served (permissive licence) · get_code("9f731d1a94e35016") How it ran |
| save_reference |
Not yet run unverified (harvested, no recorded run) |
pasteurlabs/mosaic/mosaic/benchmarks/core/reference.py code served (permissive licence) · get_code("029026f0621fcf35") How it ran |