SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.14084 · 2026

CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing

Stacy Patterson, Michele Merler, Mingzhi Zhu, Raju Paveuluri

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 6 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.14084.json · badge: /api/ran/2605.14084.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
rpi-nsl/CRANE canonical (classifier label)
classifier basis: census
12 ran · 6 no recorded run
FunctionStatusWhere it lives
build_format_neighborhoods Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rpi-nsl/CRANE/crane/crane_nullspace_format5_5.py
code served (permissive licence) · get_code("943a39eea2540d53")
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 int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - format_indices: List[int] - indices into a sequence
# - seq_len: int - length of sequence
# - radius: int - radius for neighborhood expansion
# The function builds a neighborhood of indices around each format_index

# Create valid arguments
format_indices = [2, 5, 8]  # List of indices
seq_len = 15  # Total sequence length
radius = 2  # Radius for neighborhood expansion

ARGS = {
    "format_indices": format_indices,
    "seq_len": seq_len,
    "radius": radius,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_seed_mix Ran
ran; our contract draft was wrong, not the code
rpi-nsl/CRANE/crane/build_public_calibration_subsets.py
code served (permissive licence) · get_code("90047ec9a980d646")
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 random

# Create reason_pool with items from LiveCodeBench and bigcode sources
reason_pool = [
    {'source': 'LiveCodeBench_1', 'source_id': '001', 'data': 'test_reason_1'},
    {'source': 'LiveCodeBench_2', 'source_id': '002', 'data': 'test_reason_2'},
    {'source': 'LiveCodeBench_3', 'source_id': '003', 'data': 'test_reason_3'},
    {'source': 'LiveCodeBench_4', 'source_id': '004', 'data': 'test_reason_4'},
    {'source': 'bigcode_1', 'source_id': '101', 'data': 'test_reason_5'},
    {'source': 'bigcode_2', 'source_id': '102', 'data': 'test_reason_6'},
    {'source': 'bigcode_3', 'source_id': '103', 'data': 'test_reason_7'},
    {'source': 'bigcode_4', 'source_id': '104', 'data': 'test_reason_8'},
]

# Create tool_pool with items from SWE-bench
tool_pool = [
    {'source': 'SWE-bench', 'source_id': '201', 'data': 'test_tool_1'},
    {'source': 'SWE-bench', 'source_id': '202', 'data': 'test_tool_2'},
    {'source': 'SWE-bench', 'source_id': '203', 'data': 'test_tool_3'},
    {'source': 'SWE-bench', 'source_id': '204', 'data': 'test_tool_4'},
]

ARGS = {
    'reason_pool': reason_pool,
    'tool_pool': tool_pool,
    'seed': 42,
    'd_r_size': 4,
    'd_t_size': 2,
}
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
decode_targets Ran
ran, honoured the contract we drafted
rpi-nsl/CRANE/src/crane_s_reason_auto.py
code served (permissive licence) · get_code("de15c6b5b5a0f743")
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 4, dtype family int; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from typing import List

torch.manual_seed(0)

# Create a minimal tokenizer stand-in
class MinimalTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 2
        self.pad_token = "<pad>"
        self.eos_token = "<eos>"
        self.padding_side = 'left'
    
    def __call__(self, texts, return_tensors=None, padding=False, truncation=False, max_length=None):
        # Return a dict with input_ids and attention_mask
        # Simulate tokenization: create small token sequences
        batch_size = len(texts)
        seq_len = 5  # Small sequence length
        
        input_ids = torch.randint(1, 10, (batch_size, seq_len))
        attention_mask = torch.ones((batch_size, seq_len))
        
        return {
            'input_ids': input_ids,
            'attention_mask': attention_mask
        }

# Create a minimal model that implements generate
class MinimalLM(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(10, 10)
    
    def generate(self, input_ids, attention_mask, max_new_tokens, do_sample, pad_token_id, eos_token_id):
        # Generate a continuation by concatenating random tokens to input_ids
        batch_size, prompt_len = input_ids.shape
        gen_len = 3  # Small generation length
        
        # Create generated tokens (mix of real tokens and pad tokens)
        gen_tokens = torch.randint(1, 10, (batch_size, gen_len))
        # Add some padding tokens
        gen_tokens[0, -1] = pad_token_id
        
        # Concatenate prompt and generation
        full = torch.cat([input_ids, gen_tokens], dim=1)
        return full
    
    def eval(self):
        super().eval()
        return self

# Set up arguments
device = torch.device('cpu')

tokenizer = MinimalTokenizer()
model = MinimalLM()

prompts = [
    "This is the first prompt",
    "This is the second prompt"
]

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'prompts': prompts,
    'device': device,
    'max_new_tokens': 16,
    'max_seq_len': 64,
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, 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
is_public_calibration_set Ran
ran, violated the contract we drafted
rpi-nsl/CRANE/crane/crane_calibration_public.py
code served (permissive licence) · get_code("5ecc4be2c44b632b")
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 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 os
from pathlib import Path
from unittest.mock import patch, MagicMock

# Set up the environment variable
os.environ['CRANE_PUBLIC_CALIBRATION_DIR'] = '/tmp/calibration_public'

# Create mock JSONL file existence checks
def mock_exists(self):
    """Mock the exists() method to return True for specific calibration sets."""
    path_str = str(self)
    # Return True for valid public calibration sets
    if 'public_valid_set.jsonl' in path_str:
        return True
    # Return False for pool suffixes and invalid names
    return False

# Patch Path.exists to use our mock
with patch.object(Path, 'exists', mock_exists):
    # Test with a valid public calibration set name
    calibration_set = 'public_valid_set'
    
    ARGS = {
        'calibration_set': calibration_set
    }
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 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
load_arch Ran
ran; our contract draft was wrong, not the code
rpi-nsl/CRANE/crane/model_arch.py
code served (permissive licence) · get_code("90314bf4a4e9ee1b")
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 ModelArch. 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 structure that mimics HuggingFace cache
temp_cache = tempfile.mkdtemp()

# Create the directory structure: models--{slug}/snapshots/{hash}/
model_name = "meta-llama/Llama-2-7b"
slug = model_name.replace('/', '--')
models_dir = os.path.join(temp_cache, f'models--{slug}')
snapshots_dir = os.path.join(models_dir, 'snapshots', 'abc123')
os.makedirs(snapshots_dir, exist_ok=True)

# Create a minimal config.json
config_data = {
    "num_hidden_layers": 32,
    "hidden_size": 4096,
    "head_dim": 128,
    "num_attention_heads": 32,
    "num_key_value_heads": 8,
    "num_experts": 0,
    "num_experts_per_tok": 0,
    "moe_intermediate_size": 0,
    "intermediate_size": 11008,
    "vocab_size": 32000,
    "model_type": "llama"
}

config_path = os.path.join(snapshots_dir, 'config.json')
with open(config_path, 'w') as f:
    json.dump(config_data, f)

ARGS = {
    "model_name": "meta-llama/Llama-2-7b",
    "cache_dir": temp_cache
}
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 ModelArch — a ModelArch output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ModelArch 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_stats Ran
ran; our contract draft was wrong, not the code
rpi-nsl/CRANE/crane/analyze_calibration_stability.py
code served (permissive licence) · get_code("a96b99f51e7b0b0f")
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 tempfile
from pathlib import Path

# Create a temporary JSON file with the required structure
temp_dir = tempfile.TemporaryDirectory()
temp_path = Path(temp_dir.name) / "stats.json"

# Create valid stats data with all required keys
stats_data = {
    "metadata": {
        "version": "1.0",
        "description": "test stats"
    },
    "per_component_S_reason": {
        "component_1": "reason_1",
        "component_2": "reason_2"
    },
    "per_layer_S_reason": {
        "layer_1": "reason_a",
        "layer_2": "reason_b"
    }
}

# Write the stats data to the temporary file
with temp_path.open('w', encoding='utf-8') as f:
    json.dump(stats_data, f)

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
locate_format_tokens Ran
ran, honoured the contract we drafted
rpi-nsl/CRANE/crane/crane_nullspace_format5_5.py
code served (permissive licence) · get_code("c99f881b76df3461")
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 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 re
from typing import Dict, List, Optional, Tuple

# Create a minimal tokenizer stand-in that implements the __call__ method
class MinimalTokenizer:
    def __call__(self, text: str, return_offsets_mapping: bool = False, add_special_tokens: bool = False):
        # Tokenize by splitting on whitespace and special characters
        # Return token IDs and offset mappings
        tokens = []
        offsets = []
        current_pos = 0
        
        # Simple tokenization: split on spaces
        words = text.split(' ')
        for word in words:
            start = text.find(word, current_pos)
            end = start + len(word)
            tokens.append(len(tokens))  # Simple token ID
            offsets.append((start, end))
            current_pos = end + 1
        
        result = {
            'input_ids': tokens,
        }
        
        if return_offsets_mapping:
            result['offset_mapping'] = offsets
        
        return result


# Create sample text with format patterns
text = "Hello <tool_call> world </tool_call> test <tool_response> response </tool_response> end"

# Create a tokenizer instance
tokenizer = MinimalTokenizer()

# Define patterns to search for (using default)
patterns = ['<tool_call>', '</tool_call>', '<tool_response>', '</tool_response>', '<|im_start|>', '<|im_end|>']

# Build ARGS dictionary with all parameters
ARGS = {
    'text': text,
    'tokenizer': tokenizer,
    'patterns': patterns,
}
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 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
median_threshold Ran
ran; our contract draft was wrong, not the code
rpi-nsl/CRANE/src/crane_denoise.py
code served (permissive licence) · get_code("9463b71f3d4065e8")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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)

# Create a small tensor to use as delta
# The function flattens it, finds the median threshold, applies masking and rescaling
delta = torch.randn(2, 4)

ARGS = {
    "delta": delta
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
pearson Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rpi-nsl/CRANE/crane/analyze_calibration_stability.py
code served (permissive licence) · get_code("6148a8caae33e43a")
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 math
from typing import Dict, Iterable, List, Tuple

def pearson(xs: List[float], ys: List[float]) -> float:
    if len(xs) != len(ys) or not xs:
        return float('nan')
    mx = sum(xs) / len(xs)
    my = sum(ys) / len(ys)
    vx = sum(((x - mx) ** 2 for x in xs))
    vy = sum(((y - my) ** 2 for y in ys))
    if vx == 0 or vy == 0:
        return float('nan')
    return sum(((x - mx) * (y - my) for x, y in zip(xs, ys))) / math.sqrt(vx * vy)

# Setup code
xs = [1.0, 2.0, 3.0, 4.0, 5.0]
ys = [2.0, 4.0, 5.0, 4.0, 6.0]

ARGS = {
    "xs": xs,
    "ys": ys,
}
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
rankdata Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rpi-nsl/CRANE/crane/analyze_calibration_stability.py
code served (permissive licence) · get_code("7f8e6ee5f90f787c")
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

# rankdata takes a single parameter: xs (List[float])
# The function sorts the list and assigns ranks, handling ties by averaging

ARGS = {
    "xs": [3.5, 1.2, 3.5, 2.1, 1.2, 4.0]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
slerp_tensor Ran
ran; our contract draft was wrong, not the code
rpi-nsl/CRANE/src/crane_merge.py
code served (permissive licence) · get_code("b21ddcd37b356aac")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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)

# Create two small tensors with distinct shapes to test slerp_tensor
# Using 2D tensors (batch=2, dim=4) as suggested
a = torch.randn(2, 4)
b = torch.randn(2, 4)
t = 0.5

ARGS = {
    "a": a,
    "b": b,
    "t": t,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
to_device Ran
ran; our contract draft was wrong, not the code
rpi-nsl/CRANE/src/crane_s_reason_auto.py
code served (permissive licence) · get_code("85900954efb902a9")
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. 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)

# Create sample triples - each triple is (a, b, c) where each is a tensor
triple1 = (
    torch.randn(2, 4),
    torch.randn(3, 4),
    torch.randn(4, 4)
)
triple2 = (
    torch.randn(2, 3),
    torch.randn(3, 5),
    torch.randn(4, 2)
)

triples = [triple1, triple2]

# Target device - using CPU
device = torch.device('cpu')

ARGS = {
    'triples': triples,
    'device': device
}
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 — 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
build_long_context_calibration Not yet run
unverified (harvested, no recorded run)
rpi-nsl/CRANE/crane/crane_nullspace_format5_5.py
code served (permissive licence) · get_code("5bb7421a66c31529")
How it ran

no invocation recorded.

get_d_r_texts Not yet run
unverified (harvested, no recorded run)
rpi-nsl/CRANE/crane/crane_calibration.py
code served (permissive licence) · get_code("e9c61188dbd84cf6")
How it ran

no invocation recorded.

get_d_t_texts Not yet run
unverified (harvested, no recorded run)
rpi-nsl/CRANE/crane/crane_calibration.py
code served (permissive licence) · get_code("0af4150ef99982b8")
How it ran

no invocation recorded.

get_public_calibration_items Not yet run
unverified (harvested, no recorded run)
rpi-nsl/CRANE/crane/crane_calibration_public.py
code served (permissive licence) · get_code("adfe6cac72f3929d")
How it ran

no invocation recorded.

get_public_calibration_texts Not yet run
unverified (harvested, no recorded run)
rpi-nsl/CRANE/crane/crane_calibration_public.py
code served (permissive licence) · get_code("05cc678bf62752b9")
How it ran

no invocation recorded.

wrap_with_fsdp Not yet run
unverified (harvested, no recorded run)
rpi-nsl/CRANE/src/crane_s_reason_auto_fsdp.py
code served (permissive licence) · get_code("595a279e50bcdfb5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 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 18 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

Code agents must both reason over long-horizon repository state and obey strict tool-use protocols. In paired Instruct/Thinking checkpoints, these capabilities are complementary but misaligned. The Instruct model is concise and tool-disciplined, whereas the Thinking model offers stronger planning and recovery behavior but often over-deliberates and degrades agent performance. We present CRANE (Constrained Reasoning Injection for Code Agents via Nullspace Editing), a training-free parameter-editing method that treats the Thinking-Instruct delta as a directional pool of candidate reasoning edits for the Instruct backbone. CRANE combines magnitude thresholding to denoise the delta, a Conservative Taylor Gate to retain edits that are jointly beneficial for reasoning transfer and tool-use preservation, and Graduated Sigmoidal Projection to suppress format-critical update directions. By merging paired Instruct and Thinking checkpoints, CRANE delivers strong gains over either individual model while preserving Instruct-level efficiency: on Roo-Eval it achieves pass@1 of 66.2% (+19.5%) for Qwen3-30B-A3B and 81.5% (+8.7%) for Qwen3-Next-80B-A3B; on SWE-bench-Verified it resolves up to 14 additional instances at both scales (122/500 and 180/500); and on Terminal-Bench v2 it improves pass@1/pass@5 by up to 2.3%/7.8%, reaching 7.6%/17.9% and 14.8%/30.3%, respectively, consistently outperforming alternative merging strategies across all three benchmarks. Code is available at https://github.com/rpi-nsl/CRANE.

For agents

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

get_harvested_code_for_paper("2605.14084")
get_code_for_paper("2605.14084")
have("2605.14084")

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

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

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

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

Connect an agent — have() is free.