SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.24305 · 2026

ChaosBench-Logic v2: Evaluating LLM Logical Reasoning over Dynamical Systems at Scale

Noel Thomas

arXiv · PDF · Open in the Atlas

Code that ran

14 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.24305.json · badge: /api/ran/2605.24305.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
11NOel11/ChaosBench-Logic canonical (classifier label)
classifier basis: census
14 ran · 1 no recorded run
FunctionStatusWhere it lives
aggregate_runs Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/eval/aggregation.py
code served (permissive licence) · get_code("7e04beb885629c14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
import shutil

# Create temporary directories with summary.json files for testing
temp_base = tempfile.mkdtemp()

# Create run_dir_1 with summary.json
run_dir_1 = os.path.join(temp_base, 'run_1')
os.makedirs(run_dir_1, exist_ok=True)
summary_1 = {
    'overall_accuracy': 0.85,
    'loss': 0.23,
    'other_metric': 42
}
with open(os.path.join(run_dir_1, 'summary.json'), 'w') as f:
    json.dump(summary_1, f)

# Create run_dir_2 with summary.json
run_dir_2 = os.path.join(temp_base, 'run_2')
os.makedirs(run_dir_2, exist_ok=True)
summary_2 = {
    'overall_accuracy': 0.92,
    'loss': 0.15,
    'other_metric': 50
}
with open(os.path.join(run_dir_2, 'summary.json'), 'w') as f:
    json.dump(summary_2, f)

# Create run_dir_3 with summary.json
run_dir_3 = os.path.join(temp_base, 'run_3')
os.makedirs(run_dir_3, exist_ok=True)
summary_3 = {
    'overall_accuracy': 0.88,
    'loss': 0.19,
    'other_metric': 45
}
with open(os.path.join(run_dir_3, 'summary.json'), 'w') as f:
    json.dump(summary_3, f)

# Create run_dir_4 without summary.json (should be skipped)
run_dir_4 = os.path.join(temp_base, 'run_4')
os.makedirs(run_dir_4, exist_ok=True)

ARGS = {
    'run_dirs': [run_dir_1, run_dir_2, run_dir_3, run_dir_4]
}
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
belief_divergence_curve Ran
ran, honoured the contract we drafted
11NOel11/ChaosBench-Logic/chaosbench/eval/belief_dynamics.py
code served (permissive licence) · get_code("02aafa9b68fc65c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Construct valid arguments for belief_divergence_curve

# Create clean belief vectors (list of dicts with predicate -> belief mappings)
b_clean = [
    {
        "predicate_1": "YES",
        "predicate_2": "NO",
        "predicate_3": "UNKNOWN",
        "predicate_4": "YES",
    },
    {
        "predicate_1": "YES",
        "predicate_2": "YES",
        "predicate_3": "NO",
        "predicate_4": "UNKNOWN",
    },
    {
        "predicate_1": "NO",
        "predicate_2": "NO",
        "predicate_3": "YES",
        "predicate_4": "YES",
    },
]

# Create perturbed belief vectors (same predicates but some different values)
b_perturbed = [
    {
        "predicate_1": "YES",
        "predicate_2": "YES",  # Different from clean
        "predicate_3": "UNKNOWN",
        "predicate_4": "NO",  # Different from clean
    },
    {
        "predicate_1": "NO",  # Different from clean
        "predicate_2": "YES",
        "predicate_3": "NO",
        "predicate_4": "YES",  # Different from clean
    },
    {
        "predicate_1": "NO",
        "predicate_2": "YES",  # Different from clean
        "predicate_3": "YES",
        "predicate_4": "YES",
    },
]

ARGS = {
    "b_clean": b_clean,
    "b_perturbed": b_perturbed,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_fol_violations Ran
ran, honoured the contract we drafted
11NOel11/ChaosBench-Logic/chaosbench/logic/axioms.py
code served (permissive licence) · get_code("d52944b10981ae6b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Define test data for check_fol_violations
predictions = {
    'Chaotic': 'YES',
    'Deterministic': 'YES',
    'PosLyap': 'YES',
    'Sensitive': 'YES',
    'PointUnpredictable': 'YES',
    'StatPredictable': 'YES',
    'Mixing': 'YES',
    'Ergodic': 'YES',
    'Bounded': 'YES',
    'Random': 'NO',
    'Periodic': 'NO',
}

ground_truth = {
    'Chaotic': True,
    'Deterministic': True,
    'PosLyap': True,
    'Sensitive': True,
    'PointUnpredictable': True,
    'StatPredictable': True,
    'Mixing': True,
    'Ergodic': True,
    'Bounded': True,
    'Random': False,
    'Periodic': False,
}

ARGS = {
    'predictions': predictions,
    'ground_truth': ground_truth,
}
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
compute_balanced_accuracy Ran
ran, honoured the contract we drafted
11NOel11/ChaosBench-Logic/chaosbench/eval/metrics.py
code served (permissive licence) · get_code("a42e40f689127780")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from dataclasses import dataclass
from enum import Enum
from typing import Optional, List

class Outcome(str, Enum):
    VALID_CORRECT = 'valid_correct'
    VALID_INCORRECT = 'valid_incorrect'
    INVALID = 'invalid'

@dataclass
class EvalResult:
    item_id: str
    batch_file: str
    task_family: str
    bias_family: Optional[str]
    dialogue_id: Optional[str]
    turn_index: Optional[int]
    system_id: Optional[str]
    gold: Optional[str]
    pred_raw: Optional[str]
    pred_norm: Optional[str]
    correct: Optional[bool]
    error_type: Optional[str] = None
    question: Optional[str] = None
    outcome: Optional[Outcome] = None
    group_id: Optional[str] = None

# Create a list of EvalResult objects with balanced positive and negative cases
results = [
    # Positive cases (gold='YES')
    EvalResult(
        item_id="item_1",
        batch_file="batch_1.json",
        task_family="atomic",
        bias_family=None,
        dialogue_id=None,
        turn_index=None,
        system_id=None,
        gold="YES",
        pred_raw="YES",
        pred_norm="YES",
        correct=True,
        question="Is this true?"
    ),
    EvalResult(
        item_id="item_2",
        batch_file="batch_1.json",
        task_family="atomic",
        bias_family=None,
        dialogue_id=None,
        turn_index=None,
        system_id=None,
        gold="YES",
        pred_raw="NO",
        pred_norm="NO",
        correct=False,
        question="Is this true?"
    ),
    # Negative cases (gold='NO')
    EvalResult(
        item_id="item_3",
        batch_file="batch_1.json",
        task_family="multi_hop",
        bias_family=None,
        dialogue_id=None,
        turn_index=None,
        system_id=None,
        gold="NO",
        pred_raw="NO",
        pred_norm="NO",
        correct=True,
        question="Is this false?"
    ),
    EvalResult(
        item_id="item_4",
        batch_file="batch_1.json",
        task_family="multi_hop",
        bias_family=None,
        dialogue_id=None,
        turn_index=None,
        system_id=None,
        gold="NO",
        pred_raw="YES",
        pred_norm="YES",
        correct=False,
        question="Is this false?"
    ),
]

ARGS = {
    "results": results
}
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
encode_fol_to_cnf Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/logic/solver_repair.py
code served (permissive licence) · get_code("c168702cf5fbc538")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Dict, List, Tuple

torch.manual_seed(0)

# Construct minimal arguments for encode_fol_to_cnf
rules = {
    "predicate_a": {
        "requires": ["predicate_b", "predicate_c"],
        "excludes": ["predicate_d"]
    },
    "predicate_b": {
        "requires": ["predicate_c"],
        "excludes": []
    },
    "predicate_d": {
        "requires": [],
        "excludes": ["predicate_a"]
    }
}

predicates = ["predicate_a", "predicate_b", "predicate_c", "predicate_d", "predicate_e"]

ARGS = {
    "rules": rules,
    "predicates": predicates
}
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 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
get_provider_limits Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/models/parallel.py
code served (permissive licence) · get_code("c92a5ddf5c15b6e1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Define ARGS mapping all parameters of get_provider_limits
ARGS = {
    'provider': 'openai'
}
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 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
hamming_distance Ran
ran, honoured the contract we drafted
11NOel11/ChaosBench-Logic/chaosbench/eval/belief_dynamics.py
code served (permissive licence) · get_code("89ed08e1db753746")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned 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 belief vectors as dictionaries with predicate strings as keys
# and "YES"/"NO"/"UNKNOWN" as values

b1 = {
    "predicate_1": "YES",
    "predicate_2": "NO",
    "predicate_3": "UNKNOWN",
    "predicate_4": "YES"
}

b2 = {
    "predicate_1": "YES",
    "predicate_2": "UNKNOWN",
    "predicate_3": "NO",
    "predicate_4": "YES",
    "predicate_5": "NO"
}

ARGS = {
    "b1": b1,
    "b2": b2
}
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
infer_provider Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/models/parallel.py
code served (permissive licence) · get_code("0ecd326a60bfb3af")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# The function infer_provider takes a model_name string and returns a provider string
# based on pattern matching against the model name.
# We need to construct valid arguments that will exercise the function.

ARGS = {
    'model_name': 'gpt-4-turbo'
}
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
instability_score Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
11NOel11/ChaosBench-Logic/chaosbench/eval/belief_dynamics.py
code served (permissive licence) · get_code("2a5fc5c0e5a1799c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for instability_score
# The function takes curves: List[List[float]]
# Each curve is a list of floats representing divergence values

# Create several divergence curves from perturbation trials
curve_1 = [0.1, 0.2, 0.15, 0.25, 0.3]
curve_2 = [0.05, 0.1, 0.08, 0.12, 0.15]
curve_3 = [0.2, 0.25, 0.22, 0.28, 0.32]

curves = [curve_1, curve_2, curve_3]

ARGS = {
    "curves": curves
}
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
load_system_ontology Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/logic/axioms.py
code served (permissive licence) · get_code("c73c6317c545ae05")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
import shutil

# Create a temporary directory with test system JSON files
test_dir = tempfile.mkdtemp()

# Create valid system JSON file
system1_data = {
    "system_id": "sys_001",
    "truth_assignment": {
        "is_linear": True,
        "is_stable": False,
        "has_feedback": True
    }
}

system2_data = {
    "system_id": "sys_002",
    "truth_assignment": {
        "is_linear": False,
        "is_stable": True,
        "is_chaotic": False
    }
}

# Write JSON files to temp directory
with open(os.path.join(test_dir, "system1.json"), 'w') as f:
    json.dump(system1_data, f)

with open(os.path.join(test_dir, "system2.json"), 'w') as f:
    json.dump(system2_data, f)

# Also add a non-JSON file to test filtering
with open(os.path.join(test_dir, "readme.txt"), 'w') as f:
    f.write("This is not JSON")

# Define ARGS
ARGS = {
    'systems_dir': test_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 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
make_model_client Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
11NOel11/ChaosBench-Logic/chaosbench/models/prompt.py
code served (permissive licence) · get_code("7429650cd4da28c4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DummyEchoModel. 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 dataclasses import dataclass
from typing import Any, Dict, Optional

torch.manual_seed(0)

@dataclass
class ModelConfig:
    """Configuration for a model client.

    Attributes:
        name: Model identifier, e.g. "gpt4", "claude3", "gemini".
        mode: Prompting mode: "zeroshot", "cot", or "tool".
        temperature: Sampling temperature.
        max_tokens: Maximum tokens in response.
    """
    name: str
    mode: str
    temperature: float = 0.0
    max_tokens: int = 512

# Create a valid ModelConfig instance
test_config = ModelConfig(
    name="dummy",
    mode="zeroshot",
    temperature=0.7,
    max_tokens=256
)

ARGS = {
    "config": test_config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chaosbench, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DummyEchoModel — a DummyEchoModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DummyEchoModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_label Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/eval/metrics.py
code served (permissive licence) · get_code("c9e6c64153fcf530")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from typing import Optional

def normalize_label(text: Optional[str]) -> Optional[str]:
    """Normalize a free-form model answer into 'YES' or 'NO'.

    Uses an 8-step parsing cascade to handle diverse model output formats
    including FINAL_ANSWER markers, CoT outputs, revision patterns,
    markdown formatting, and fallback token matching.

    Args:
        text: Raw model output text.

    Returns:
        "YES", "NO", or None if unparseable.
    """
    if text is None:
        return None
    raw = text.strip()
    if not raw:
        return None
    text_cleaned = re.sub('[*_`]', '', raw)
    final_answer_match = re.search('FINAL[_\\s-]*ANSWER\\s*[:=]\\s*([^\\n.,;]+)', text_cleaned, re.IGNORECASE)
    if final_answer_match:
        answer_part = final_answer_match.group(1).strip()
    else:
        answer_patterns = ['(?:final|ultimate|my)\\s+answer\\s*[:=]?\\s*([^\\n.,;]+)', '(?:the\\s+)?answer\\s+is\\s+(.+?)(?:\\.|\\n|$)', '(?:i\\s+)?answer\\s*[:=]\\s*([^\\n.,;]+)', 'therefore\\s*[,:=]?\\s*([^\\n.,;]+)', 'conclusion\\s*[:=]\\s*([^\\n.,;]+)', 'so\\s+(?:the\\s+answer\\s+is\\s+)?([^\\n.,;]+)']
        answer_part = None
        for pattern in answer_patterns:
            match = re.search(pattern, text_cleaned, re.IGNORECASE)
            if match:
                answer_part = match.group(1).strip()
                break
        if answer_part is None:
            lines = [line.strip() for line in text_cleaned.split('\n') if line.strip()]
            if lines:
                answer_part = lines[-1]
        if not answer_part:
            answer_part = text_cleaned.strip()
    if not answer_part:
        return None
    cleaned = re.sub('[^\\w\\s]', ' ', answer_part)
    cleaned = ' '.join(cleaned.split()).lower()
    if not cleaned:
        full_lower = raw.lower()
        if re.search('\\byes\\b', full_lower):
            return 'YES'
        if re.search('\\bno\\b', full_lower):
            return 'NO'
        if re.search('\\btrue\\b', full_lower):
            return 'YES'
        if re.search('\\bfalse\\b', full_lower):
            return 'NO'
        return None
    tokens = cleaned.split()
    if not tokens:
        return None
    last_yes_token = None
    last_no_token = None
    for i, token in enumerate(tokens):
        if token in {'yes', 'true'}:
            last_yes_token = i
        if token in {'no', 'false'}:
            last_no_token = i
    if last_yes_token is not None and last_no_token is not None:
        if last_yes_token > last_no_token:
            return 'YES'
        else:
            return 'NO'
    elif last_yes_token is not None:
        return 'YES'
    elif last_no_token is not None:
        return 'NO'
    full_lower = raw.lower()
    last_yes_idx = max(full_lower.rfind(' yes'), full_lower.rfind(' yes.'), full_lower.rfind(' yes,'), full_lower.rfind('\nyes'), full_lower.rfind(' true'), full_lower.rfind(' true.'))
    last_no_idx = max(full_lower.rfind(' no'), full_lower.rfind(' no.'), full_lower.rfind(' no,'), full_lower.rfind('\nno'), full_lower.rfind(' false'), full_lower.rfind(' false.'))
    if last_yes_idx > last_no_idx and last_yes_idx >= 0:
        return 'YES'
    elif last_no_idx > last_yes_idx and last_no_idx >= 0:
        return 'NO'
    return None


# Test cases covering various input scenarios
ARGS = {
    "text": "FINAL_ANSWER: yes"
}
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
outcome_to_label Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/eval/parsing.py
code served (permissive licence) · get_code("0309d7273ca605c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from enum import Enum
from typing import Optional

class ParseOutcome(str, Enum):
    """Three-way parsing outcome."""
    VALID_TRUE = 'VALID_TRUE'
    VALID_FALSE = 'VALID_FALSE'
    INVALID = 'INVALID'

def outcome_to_label(outcome: ParseOutcome) -> Optional[str]:
    """Convert outcome to label string or None."""
    if outcome == ParseOutcome.VALID_TRUE:
        return 'TRUE'
    if outcome == ParseOutcome.VALID_FALSE:
        return 'FALSE'
    return None

ARGS = {
    'outcome': ParseOutcome.VALID_TRUE
}
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
retry_with_backoff Ran
ran; our contract draft was wrong, not the code
11NOel11/ChaosBench-Logic/chaosbench/models/parallel.py
code served (permissive licence) · get_code("f9d80bb8527fe7c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, 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 time
from typing import Any, Callable, Dict, List, Optional, Tuple

# Define test functions for different scenarios
def successful_func():
    """A function that succeeds immediately."""
    return "success_result"

def rate_limit_func():
    """A function that raises a rate limit error."""
    raise Exception("429 Too Many Requests - Rate limit exceeded")

def auth_error_func():
    """A function that raises an authorization error."""
    raise Exception("401 Unauthorized - Invalid credentials")

def server_error_func():
    """A function that raises a server error."""
    raise Exception("503 Service Unavailable")

def timeout_error_func():
    """A function that raises a timeout error."""
    raise Exception("Connection timeout occurred")

def other_error_func():
    """A function that raises a generic error."""
    raise Exception("Some other error occurred")

# Construct arguments for the function
ARGS = {
    "func": successful_func,
    "max_retries": 4,
    "initial_delay": 1.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 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
parse_label Not yet run
unverified (harvested, no recorded run)
11NOel11/ChaosBench-Logic/chaosbench/eval/parsing.py
code served (permissive licence) · get_code("ead893ce1b5defab")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Standard accuracy on binary reasoning benchmarks hides critical failure modes: prior collapse, inconsistency under paraphrase, and inability to reason about parameter-dependent dynamics. We present ChaosBench-Logic v2, a 40,886question benchmark over 165 dynamical systems with 27 FOL predicates and 78 axiom edges, together with CARE (Calibration-and Adversarial-Robust Evaluation), a protocol that surfaces these pathologies. Evaluating 14 models, we find that regime transition reasoning remains near-random (MCC = 0.05) even for frontier models, while FOL deduction with given premises reaches MCC = 0.52; per-family decomposition shows the proprietary advantage concentrates on crossindicator (+0.40) and consistency tasks, while open-source Qwen 2.5-32B dominates indicator diagnostics (0.91 vs. 0.45). Two models exhibit negative MCC on bifurcation questions, confirmed as systematic anti-correlation via confusion matrix analysis.

For agents

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

get_harvested_code_for_paper("2605.24305")
get_code_for_paper("2605.24305")
have("2605.24305")

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

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

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

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

Connect an agent — have() is free.