| Config |
Ran ran on a synthesized input · constructed an object; no result was computed |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("65a29e7b9c55b41c") 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 an instance of its own class, Config: the run constructed the object and did not call it, so no result was computed. 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, asdict
from typing import Dict, List, Optional, Sequence
@dataclass(frozen=True)
class Config:
key: str
scoring: str
fmt: str
perm_index: Optional[int]
ARGS = {
"key": "model_key_001",
"scoring": "accuracy",
"fmt": "json",
"perm_index": 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 Config — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Config 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
|
| _gen_formatter |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("42d15a37f19a12cb") 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 re
import types as _types
DIGITS = ['1', '2', '3', '4']
LETTERS = ['A', 'B', 'C', 'D']
def fmt_digit(question, options, fewshot=''):
body = '\n'.join((f'{d}. {o}' for d, o in zip(DIGITS, options)))
return f'{fewshot}Question: {question}\n{body}\nAnswer (1-4):'
def fmt_instruction_variant(question, options, fewshot=''):
body = '\n'.join((f'{l}) {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}Read carefully and pick the single best choice.\n{question}\n{body}\nYour choice:'
def fmt_letter_paren(question, options, fewshot=''):
body = '\n'.join((f'({l}) {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}{question}\n{body}\nThe correct option is'
def fmt_letter_plain(question, options, fewshot=''):
body = '\n'.join((f'{l}. {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}Question: {question}\n{body}\nAnswer with the letter only:'
def parse_digit(text, options=None):
m = re.search('\\b([1-4])\\b', text.strip())
return int(m.group(1)) - 1 if m else None
def parse_letter(text, options=None):
t = text.strip().upper()
m = re.search('\\b([A-D])\\b', t)
return LETTERS.index(m.group(1)) if m else None
GEN_FORMATS = [('letter_plain', fmt_letter_plain, parse_letter), ('letter_paren', fmt_letter_paren, parse_letter), ('digit_labels', fmt_digit, parse_digit), ('instruction', fmt_instruction_variant, parse_letter)]
def _gen_formatter(name):
for n, f, p in F.GEN_FORMATS:
if n == name:
return (f, p)
raise KeyError(name)
F = _types.SimpleNamespace(GEN_FORMATS=GEN_FORMATS)
ARGS = {
'name': 'letter_plain'
}
- 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, 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
|
| _ll_formatter |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("695925e90c32c5b3") 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 function. 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
import types as _types
# Define the formatting functions
def fmt_cloze_plain(question, options, fewshot=''):
return f'{fewshot}{question}\nAnswer:'
def fmt_cloze_question(question, options, fewshot=''):
return f'{fewshot}Question: {question}\nAnswer:'
# Define LL_FORMATS
LL_FORMATS = [('cloze_plain', fmt_cloze_plain), ('cloze_question', fmt_cloze_question)]
# Define other required globals for F namespace
class Config:
pass
GEN_FORMATS = []
REF_CONFIG_KEY = 'ref'
def accuracy_band(x):
return x
def all_correct(x):
return x
def any_correct(x):
return x
def axis_robust_accuracy(x):
return x
def classify_item(x):
return x
def config_legend(x):
return x
def config_lucky_fraction(x):
return x
def enumerate_configs(x):
return x
def is_fragile(x):
return x
def pair_gap_decomposition(x):
return x
def pick_perms(x):
return x
def rankings_across_configs(x):
return x
# Create F namespace
F = _types.SimpleNamespace(**{
n: globals()[n] for n in [
'Config', 'GEN_FORMATS', 'LL_FORMATS', 'REF_CONFIG_KEY',
'accuracy_band', 'all_correct', 'any_correct', 'axis_robust_accuracy',
'classify_item', 'config_legend', 'config_lucky_fraction',
'enumerate_configs', 'fmt_cloze_plain', 'fmt_cloze_question',
'is_fragile', 'pair_gap_decomposition', 'pick_perms', 'rankings_across_configs'
] if n in globals()
})
# Define _ll_formatter function
def _ll_formatter(name):
for n, f in F.LL_FORMATS:
if n == name:
return f
raise KeyError(name)
# Construct arguments for _ll_formatter
ARGS = {
'name': 'cloze_plain'
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_mcq |
Ran ran on a synthesized input |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("dab49d79efdaa890") 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. 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.
# Since the function calls load_dataset which requires network access,
# we need to mock it and provide test data that matches the expected format.
from unittest.mock import patch, MagicMock
# Create mock dataset objects for each benchmark
def create_hellaswag_mock():
"""Mock dataset for hellaswag"""
return [
{'ctx': 'A person is walking', 'endings': ['down the street', 'up the tree', 'into water', 'through a door'], 'label': '0'},
{'ctx': 'Someone is cooking', 'endings': ['in a kitchen', 'on a mountain', 'underwater', 'in space'], 'label': '1'},
]
def create_arc_mock():
"""Mock dataset for ARC-Challenge"""
return [
{
'question': 'What is the capital of France?',
'choices': {'text': ['Paris', 'London', 'Berlin', 'Madrid'], 'label': ['A', 'B', 'C', 'D']},
'answerKey': 'A'
},
{
'question': 'What is 2+2?',
'choices': {'text': ['3', '4', '5', '6'], 'label': ['A', 'B', 'C', 'D']},
'answerKey': 'B'
},
]
def create_truthfulqa_mock():
"""Mock dataset for truthfulqa"""
return [
{
'question': 'Is the Earth flat?',
'mc1_targets': {
'choices': ['No, the Earth is round', 'Yes, the Earth is flat', 'Maybe', 'Unknown'],
'labels': [1, 0, 0, 0]
}
},
{
'question': 'Can humans fly?',
'mc1_targets': {
'choices': ['No, humans cannot naturally fly', 'Yes, humans can fly', 'Sometimes', 'Only in dreams'],
'labels': [1, 0, 0, 0]
}
},
]
def mock_load_dataset(name, split=None, *args, **kwargs):
"""Mock load_dataset function"""
if 'hellaswag' in name:
return create_hellaswag_mock()
elif 'ai2_arc' in name:
return create_arc_mock()
elif 'truthful' in name or 'truthfulqa' in name:
return create_truthfulqa_mock()
return []
# Patch the load_dataset function
with patch('datasets.load_dataset', side_effect=mock_load_dataset):
ARGS = {
'name': 'hellaswag'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list — a list 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
|
| all_correct |
Ran ran, honoured the contract we drafted |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("d1b6ee9b419f7550") 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
torch.manual_seed(0)
# Analyze the function: all_correct(bits: Dict[str, int]) -> int
# The function checks if bits dict is non-empty and all values equal 1
# It returns 1 if both conditions are true, 0 otherwise
# Test case 1: all values are 1 (should return 1)
ARGS = {
"bits": {"a": 1, "b": 1, "c": 1}
}
- 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 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
|
| classify_item |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("9e9045888777fd38") 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)
# Analyze the function:
# - classify_item takes a single parameter: bits (Dict[str, int])
# - It extracts values from the dict and checks conditions on them
# - Returns classification based on whether all values are 1, all are 0, or mixed
# Create test cases for different scenarios
bits_robust_correct = {'config_1': 1, 'config_2': 1, 'config_3': 1}
bits_robust_wrong = {'config_1': 0, 'config_2': 0, 'config_3': 0}
bits_fragile = {'config_1': 1, 'config_2': 0, 'config_3': 1}
bits_empty = {}
# We'll use one representative case
ARGS = {
'bits': bits_fragile
}
- 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
|
| config_lucky_fraction |
Ran ran, honoured the contract we drafted |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("a9bf33aa6a6dc87a") 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 numpy as np
from typing import Dict, List, Optional, Sequence
torch.manual_seed(0)
# Create sample records for config_lucky_fraction
# Each record is a Dict[str, int] with config keys and their correctness values (0 or 1)
records = [
{
'gen|letter_plain|p0': 1, # ref_key, marked as correct
'gen|letter_plain|p1': 1, # also correct in other config
'gen|letter_bold|p0': 1, # also correct in other config
},
{
'gen|letter_plain|p0': 1, # ref_key, marked as correct
'gen|letter_plain|p1': 0, # flipped to wrong in other config (configuration luck!)
'gen|letter_bold|p0': 1,
},
{
'gen|letter_plain|p0': 1, # ref_key, marked as correct
'gen|letter_plain|p1': 1,
'gen|letter_bold|p0': 0, # flipped to wrong in other config (configuration luck!)
},
{
'gen|letter_plain|p0': 0, # ref_key, marked as incorrect, so excluded from "reported"
'gen|letter_plain|p1': 1,
'gen|letter_bold|p0': 1,
},
{
'gen|letter_plain|p0': 1, # ref_key, marked as correct
'gen|letter_plain|p1': 1, # all correct across configs
'gen|letter_bold|p0': 1,
},
]
ARGS = {
'records': records,
'ref_key': 'gen|letter_plain|p0',
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| enumerate_configs |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("858dfca4370d6646") 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 itertools
from dataclasses import dataclass, asdict
from typing import Dict, List, Optional, Sequence
@dataclass(frozen=True)
class Config:
key: str
scoring: str
fmt: str
perm_index: Optional[int]
DIGITS = ['1', '2', '3', '4']
LETTERS = ['A', 'B', 'C', 'D']
def fmt_cloze_plain(question, options, fewshot=''):
return f'{fewshot}{question}\nAnswer:'
def fmt_cloze_question(question, options, fewshot=''):
return f'{fewshot}Question: {question}\nAnswer:'
def fmt_digit(question, options, fewshot=''):
body = '\n'.join((f'{d}. {o}' for d, o in zip(DIGITS, options)))
return f'{fewshot}Question: {question}\n{body}\nAnswer (1-4):'
def fmt_instruction_variant(question, options, fewshot=''):
body = '\n'.join((f'{l}) {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}Read carefully and pick the single best choice.\n{question}\n{body}\nYour choice:'
def fmt_letter_paren(question, options, fewshot=''):
body = '\n'.join((f'({l}) {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}{question}\n{body}\nThe correct option is'
def fmt_letter_plain(question, options, fewshot=''):
body = '\n'.join((f'{l}. {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}Question: {question}\n{body}\nAnswer with the letter only:'
def parse_digit(text, options=None):
import re
m = re.search('\\b([1-4])\\b', text.strip())
return int(m.group(1)) - 1 if m else None
def parse_letter(text, options=None):
import re
t = text.strip().upper()
m = re.search('\\b([A-D])\\b', t)
return LETTERS.index(m.group(1)) if m else None
def pick_perms(n_perms: int) -> List[tuple]:
import random
allp = list(itertools.permutations(range(4)))
if n_perms >= len(allp):
return allp
rest = allp[1:]
random.Random(99).shuffle(rest)
return [allp[0]] + rest[:max(0, n_perms - 1)]
GEN_FORMATS = [('letter_plain', fmt_letter_plain, parse_letter), ('letter_paren', fmt_letter_paren, parse_letter), ('digit_labels', fmt_digit, parse_digit), ('instruction', fmt_instruction_variant, parse_letter)]
LL_FORMATS = [('cloze_plain', fmt_cloze_plain), ('cloze_question', fmt_cloze_question)]
def enumerate_configs(n_perms: int) -> List[Config]:
"""The full config grid: generation x {formats} x {orderings}, plus loglikelihood x {stems}.
Deterministic order; the identity-order letter_plain generation config is REF_CONFIG_KEY."""
perms = pick_perms(n_perms)
configs: List[Config] = []
for fmt_name, _f, _p in GEN_FORMATS:
for pi in range(len(perms)):
configs.append(Config(f'gen|{fmt_name}|p{pi}', 'generation', fmt_name, pi))
for fmt_name, _f in LL_FORMATS:
configs.append(Config(f'll|{fmt_name}', 'loglikelihood', fmt_name, None))
return configs
ARGS = {
'n_perms': 3
}
- 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
|
| fmt_cloze_plain |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("7014c89d512e5201") 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)
ARGS = {
'question': 'What is the capital of France?',
'options': ['Paris', 'London', 'Berlin'],
'fewshot': 'Example: What is 2+2?\nAnswer: 4\n\n'
}
- 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
|
| fmt_cloze_question |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("a27a360e96e34174") 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)
ARGS = {
'question': 'What is the capital of France?',
'options': ['Paris', 'London', 'Berlin', 'Madrid'],
'fewshot': 'Example:\nQuestion: What is 2+2?\nAnswer: 4\n\n'
}
- 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
|
| fmt_digit |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("e0d1b62e10a912fb") 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
ARGS = {
'question': 'What is the capital of France?',
'options': ['London', 'Berlin', 'Paris', 'Madrid'],
'fewshot': 'Example:\nQuestion: What is 2+2?\n1. 3\n2. 4\n3. 5\n4. 6\nAnswer (1-4): 2\n\n'
}
- 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
|
| fmt_instruction_variant |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("d47a419a44760630") 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
ARGS = {
'question': 'What is the capital of France?',
'options': ['London', 'Berlin', 'Paris', 'Madrid'],
'fewshot': 'Example:\nQ: What is 2+2?\n1) 3\n2) 4\n3) 5\n4) 6\nA: 2)\n\n'
}
- 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
|
| fmt_letter_paren |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("c2ce2f17242d7499") 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
LETTERS = ['A', 'B', 'C', 'D']
def fmt_letter_paren(question, options, fewshot=''):
body = '\n'.join((f'({l}) {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}{question}\n{body}\nThe correct option is'
# Set seed for reproducibility
torch.manual_seed(0)
# Construct arguments
question = "What is the capital of France?"
options = [
"London",
"Paris",
"Berlin",
"Madrid"
]
fewshot = "Example:\nQ: What is 2+2?\n(A) 3\n(B) 4\n(C) 5\n(D) 6\nThe correct option is (B)\n\n"
ARGS = {
"question": question,
"options": options,
"fewshot": fewshot
}
- 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
|
| fmt_letter_plain |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("2d8a17784d16e367") 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
LETTERS = ['A', 'B', 'C', 'D']
def fmt_letter_plain(question, options, fewshot=''):
body = '\n'.join((f'{l}. {o}' for l, o in zip(LETTERS, options)))
return f'{fewshot}Question: {question}\n{body}\nAnswer with the letter only:'
ARGS = {
'question': 'What is the capital of France?',
'options': ['London', 'Berlin', 'Paris', 'Madrid'],
'fewshot': 'Example:\nQuestion: What is 2+2?\nA. 3\nB. 4\nC. 5\nD. 6\nAnswer with the letter only: B\n\n'
}
- 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
|
| load_bench |
Ran ran; our contract draft was wrong, not the code |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("e7df1d3674c71252") 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.
import random
# Mock the datasets module to avoid actual downloads
class MockDataset:
def __init__(self, data):
self.data = data
def shuffle(self, seed=None):
random.Random(seed).shuffle(self.data)
return self
def select(self, indices):
self.data = [self.data[i] for i in indices if i < len(self.data)]
return self
def __iter__(self):
return iter(self.data)
# Create mock data for different benchmarks
mock_mmlu_data = [
{
'question': f'Question {i}',
'choices': ['option A', 'option B', 'option C', 'option D'],
'answer': i % 4
}
for i in range(10)
]
mock_hellaswag_data = [
{
'ctx': f'Context {i}',
'endings': ['ending 0', 'ending 1', 'ending 2', 'ending 3'],
'label': str(i % 4)
}
for i in range(10)
]
# Patch load_dataset function
import sys
from types import ModuleType
datasets_mock = ModuleType('datasets')
def mock_load_dataset(name, config=None, split=None):
if name == 'cais/mmlu':
return MockDataset(mock_mmlu_data[:])
elif name == 'Rowan/hellaswag':
return MockDataset(mock_hellaswag_data[:])
elif name == 'allenai/ai2_arc':
return MockDataset([
{
'question': 'What is 2+2?',
'choices': {'text': ['3', '4', '5', '6'], 'label': ['A', 'B', 'C', 'D']},
'answerKey': 'B'
}
])
elif name in ['truthfulqa/truthful_qa', 'truthful_qa']:
return MockDataset([
{
'question': 'Is the Earth flat?',
'mc1_targets': {
'choices': ['No', 'Yes', 'Maybe', 'Unknown'],
'labels': [1, 0, 0, 0]
}
}
])
return MockDataset([])
datasets_mock.load_dataset = mock_load_dataset
sys.modules['datasets'] = datasets_mock
ARGS = {
'name': 'hellaswag',
'n': 3,
'seed': 1234
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- datasets — 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
|
| parse_digit |
Ran ran, honoured the contract we drafted |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("7f3f47c81c17ffc8") 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 re
def parse_digit(text, options=None):
m = re.search('\\b([1-4])\\b', text.strip())
return int(m.group(1)) - 1 if m else None
ARGS = {
"text": "The answer is 3",
"options": None
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| parse_letter |
Ran ran, honoured the contract we drafted |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("e942baeca8a69281") 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 re
LETTERS = ['A', 'B', 'C', 'D']
def parse_letter(text, options=None):
t = text.strip().upper()
m = re.search('\\b([A-D])\\b', t)
return LETTERS.index(m.group(1)) if m else None
ARGS = {
'text': 'The answer is B',
'options': None
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| pick_perms |
Ran ran, honoured the contract we drafted |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("ebdc8a43b5f72489") 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 2, 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 itertools
from typing import Dict, List, Optional, Sequence
# Set random seed for reproducibility
import random
random.seed(99)
# The function pick_perms takes n_perms as an argument
# Based on the function body, it:
# 1. Creates all permutations of range(4)
# 2. Takes the first one (identity)
# 3. Shuffles the rest with a fixed seed
# 4. Returns n_perms total permutations
# Valid test cases for n_perms
ARGS = {
"n_perms": 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 list, ndim 2, 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
|
| eval_grid_one_model |
Not yet run unverified (harvested, no recorded run) |
NikolaTesla-007/fragility-grid/repro/fragility_grid.py code served (permissive licence) · get_code("517d0adfd08bf867") How it ran |