SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.10077 · 2025

A quantum semantic framework for natural language processing

arXiv · PDF · Open in the Atlas

Code that ran

16 of 22 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; 0 honoured the contract we drafted, 0 violated it and 16 have no contract verdict; 0 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2506.10077.json · badge: /api/ran/2506.10077.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
npc-worldwide/npcpy canonical (classifier label)
classifier basis not recorded on the link
16 ran · 6 no recorded run
FunctionStatusWhere it lives
agent_pass_handler Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/npc_compiler.py
code served (permissive licence) · get_code("6bf1b81aee20da6c")
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 torch.nn as nn

torch.manual_seed(0)

# Define minimal stand-in classes for NPC and Team
class StandInNPC:
    def __init__(self, name, team=None):
        self.name = name
        self._current_team = team
    
    def handle_agent_pass(self, target_npc, command, messages=None, context=None, shared_context=None, stream=False, team=None):
        return {
            'messages': messages or [],
            'output': f"Agent pass from {self.name} to {target_npc.name} executed"
        }

class StandInTeam:
    def __init__(self, name, npcs_dict=None):
        self.name = name
        self.npcs = npcs_dict or {}
        self.shared_context = {'game_state': 'active'}
    
    def get_npc(self, npc_name):
        return self.npcs.get(npc_name)

# Create team and NPCs
npc1 = StandInNPC('Agent1')
npc2 = StandInNPC('Agent2')
team = StandInTeam('TeamAlpha', {'Agent1': npc1, 'Agent2': npc2})
npc1._current_team = team
npc2._current_team = team

# Create command and extracted_data
command = "pass_action"
extracted_data = {
    'target_npc': 'Agent2'
}

# Create messages list with some mock history
messages = [
    {'content': 'Agent made first move', 'role': 'system'},
    {'content': 'NOTE: THIS COMMAND HAS BEEN PASSED FROM Agent1 TO YOU', 'role': 'system'},
]

# Additional context
context = {
    'turn': 1,
    'game_phase': 'action'
}

ARGS = {
    'command': command,
    'extracted_data': extracted_data,
    'npc': npc1,
    'team': team,
    'messages': messages,
    'context': context,
    'stream': False
}
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 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
agents_to_npc Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/convert.py
code served (permissive licence) · get_code("2c49af830e973cdf")
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 os
import sys
import tempfile
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test agents markdown file
agents_md_content = """---
name: default_agent
tools:
  - tool1
  - tool2
jinxes:
  - jinx1
---

This is the body of the default agent.

## Agent One
Agent one description and body.

## Agent Two
Agent two description and body.
"""

agents_file = os.path.join(temp_dir, "agents.md")
with open(agents_file, 'w', encoding='utf-8') as f:
    f.write(agents_md_content)

# Create a test agents directory
agents_dir = os.path.join(temp_dir, "agents_dir")
os.makedirs(agents_dir, exist_ok=True)

agent1_content = """---
name: agent_one
tools:
  - tool_a
---

First agent body content.
"""

agent2_content = """---
name: agent_two
jinxes:
  - jinx_a
---

Second agent body content.
"""

with open(os.path.join(agents_dir, "agent1.md"), 'w', encoding='utf-8') as f:
    f.write(agent1_content)

with open(os.path.join(agents_dir, "agent2.md"), 'w', encoding='utf-8') as f:
    f.write(agent2_content)

# Create output directory
out_dir = os.path.join(temp_dir, "output")
os.makedirs(out_dir, exist_ok=True)

# Create a mock team path (optional)
team_dir = os.path.join(temp_dir, "team")
os.makedirs(team_dir, exist_ok=True)

ARGS = {
    "agents_path": agents_file,
    "out_dir": out_dir,
    "team_path": None,
    "interactive": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
npcpy, yaml — 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_internet_connection Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/npc_sysenv.py
code served (permissive licence) · get_code("fbaa0111f3bcded7")
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 socket

ARGS = {
    'timeout': 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 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
create_model_genome Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/ft/model_ensembler.py
code served (permissive licence) · get_code("dcce9ec0ef40fcea")
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
from dataclasses import dataclass, field
from typing import List, Dict, Any, Optional

torch_seed = 0
random.seed(torch_seed)

# Define ARGS dict with all parameters for create_model_genome
ARGS = {
    'specializations': ['math', 'code', 'creative', 'factual', 'analysis'],
    'base_model': 'Qwen/Qwen3-0.6B'
}
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
deep_to_dict Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/db.py
code served (permissive licence) · get_code("c59cdabeb1e36349")
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 torch.nn as nn

torch.manual_seed(0)

class CustomObject:
    def to_dict(self):
        return {"key": "value", "number": 42}

class NestedObject:
    def to_dict(self):
        return {
            "nested": CustomObject(),
            "list": [1, 2, CustomObject()],
            "primitive": "test"
        }

# Test with various nested structures
test_obj = NestedObject()

test_dict = {
    "simple": 42,
    "string": "hello",
    "float": 3.14,
    "bool": True,
    "none": None,
    "list": [1, "two", 3.0, None],
    "nested_dict": {
        "inner": CustomObject(),
        "values": [10, 20, 30]
    },
    "custom": CustomObject(),
    "deep_list": [
        {"a": 1, "b": CustomObject()},
        [CustomObject(), "text", 99]
    ]
}

ARGS = {
    "obj": test_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
discover_team_path Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/mcp_server.py
code served (permissive licence) · get_code("2e51a3e5f05db351")
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 os
import tempfile
import shutil

# Create temporary directories for testing
temp_dir = tempfile.mkdtemp()
agents_dir = os.path.join(temp_dir, 'agents')
os.makedirs(agents_dir, exist_ok=True)

npc_team_dir = os.path.join(temp_dir, 'npc_team')
os.makedirs(npc_team_dir, exist_ok=True)

# Save current working directory and change to temp directory for testing
original_cwd = os.getcwd()
os.chdir(temp_dir)

# Test with explicit_path as None (will check cwd/agents first)
explicit_path_value = None

ARGS = {
    'explicit_path': explicit_path_value
}
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
ensure_engine Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/db.py
code served (permissive licence) · get_code("3d4a6cd6dc9565d2")
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 Engine. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine

# Test with a string connection (SQLite in-memory database)
conn_string = "sqlite:///:memory:"

# Test with an actual Engine object
engine = create_engine("sqlite:///:memory:")

# ARGS dict with both parameter values tested
ARGS = {
    "conn": conn_string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sqlalchemy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Engine — a Engine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Engine 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
find_file_path Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/npc_compiler.py
code served (permissive licence) · get_code("f870dadfa59bd668")
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 os
import tempfile
import shutil

# Create temporary directories and files for testing
temp_base = tempfile.mkdtemp()
temp_dir1 = os.path.join(temp_base, "dir1")
temp_dir2 = os.path.join(temp_base, "dir2")
os.makedirs(temp_dir1, exist_ok=True)
os.makedirs(temp_dir2, exist_ok=True)

# Create a test file in dir1
test_file = os.path.join(temp_dir1, "testfile.txt")
with open(test_file, "w") as f:
    f.write("test content")

# Create another test file in dir2 with a suffix
test_file2 = os.path.join(temp_dir2, "config.yaml")
with open(test_file2, "w") as f:
    f.write("config: test")

ARGS = {
    "filename": "testfile.txt",
    "search_dirs": [temp_dir1, temp_dir2],
    "suffix": 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 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
generate_trigger_patterns Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/ft/model_ensembler.py
code served (permissive licence) · get_code("986a0476abbe5ebc")
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

# Set seed for reproducibility
torch.manual_seed(0)

# Define ARGS dictionary with valid arguments for generate_trigger_patterns
ARGS = {
    "specialization": "math"
}
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
get_locally_available_models Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/npc_sysenv.py
code served (permissive licence) · get_code("6b18d725a9a080c4")
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 os
import tempfile

# Create a temporary directory to act as project_directory
project_directory = tempfile.mkdtemp()

# Create a minimal .env file
env_file_path = os.path.join(project_directory, '.env')
with open(env_file_path, 'w') as f:
    f.write('OPENAI_API_KEY=sk-test-key\n')
    f.write('ANTHROPIC_API_KEY=sk-ant-test-key\n')

ARGS = {
    'project_directory': project_directory,
    'airplane_mode': False,
    'gguf_dir': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
litellm, llama_cpp, ollama, requests — 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
mutate_model_genome Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/ft/model_ensembler.py
code served (permissive licence) · get_code("82be464560deb08f")
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 copy
import random
from dataclasses import dataclass, field
from typing import List, Dict, Any, Optional

@dataclass
class ModelGene:
    """
    Represents a specialized model with trigger patterns 
    and confidence threshold
    """
    sft_path: Optional[str] = None
    rl_path: Optional[str] = None
    base_model: str = 'Qwen/Qwen3-0.6B'
    specialization: str = 'general'
    trigger_patterns: List[str] = field(default_factory=list)
    confidence_threshold: float = 0.7

def mutate_model_genome(genome: List[ModelGene], mutation_type: str='random') -> List[ModelGene]:
    """
    Apply genetic mutation to model genome
    """
    new_genome = copy.deepcopy(genome)
    mutations = ['adjust_threshold', 'add_trigger', 'remove_gene', 'duplicate_gene']
    if mutation_type == 'random':
        mutation_type = random.choice(mutations)
    if mutation_type == 'adjust_threshold':
        gene = random.choice(new_genome)
        gene.confidence_threshold += random.uniform(-0.1, 0.1)
        gene.confidence_threshold = max(0.5, min(0.95, gene.confidence_threshold))
    elif mutation_type == 'add_trigger':
        gene = random.choice(new_genome)
        new_trigger = f'pattern_{random.randint(1, 100)}'
        if new_trigger not in gene.trigger_patterns:
            gene.trigger_patterns.append(new_trigger)
    elif mutation_type == 'remove_gene' and len(new_genome) > 1:
        new_genome.pop(random.randint(0, len(new_genome) - 1))
    elif mutation_type == 'duplicate_gene':
        gene = random.choice(new_genome)
        new_gene = copy.deepcopy(gene)
        new_gene.specialization = f'{gene.specialization}_variant'
        new_genome.append(new_gene)
    return new_genome

random.seed(42)

gene1 = ModelGene(
    sft_path='/path/to/sft1',
    rl_path='/path/to/rl1',
    base_model='Qwen/Qwen3-0.6B',
    specialization='math',
    trigger_patterns=['math_pattern_1', 'math_pattern_2'],
    confidence_threshold=0.75
)

gene2 = ModelGene(
    sft_path='/path/to/sft2',
    rl_path='/path/to/rl2',
    base_model='Qwen/Qwen3-0.6B',
    specialization='coding',
    trigger_patterns=['code_pattern_1'],
    confidence_threshold=0.80
)

genome = [gene1, gene2]

ARGS = {
    'genome': genome,
    'mutation_type': 'random'
}
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
normalize_path_for_db Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/db.py
code served (permissive licence) · get_code("4216e682e01ce361")
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
import numpy as np

# Define ARGS dictionary with valid arguments for normalize_path_for_db
ARGS = {
    'path_str': 'C:\\Users\\test\\Documents\\file.txt'
}

# Additional test cases to verify the function works with different inputs
# Test with None
ARGS_NONE = {
    'path_str': None
}

# Test with empty string
ARGS_EMPTY = {
    'path_str': ''
}

# Test with forward slashes only
ARGS_FORWARD = {
    'path_str': '/home/user/documents/file.txt'
}

# Test with mixed slashes and trailing slash
ARGS_MIXED = {
    'path_str': 'C:\\Users\\test/Documents\\'
}

# Use the primary test case
ARGS = {
    'path_str': 'C:\\Users\\test\\Documents\\file.txt'
}
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
predict_model Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/ml_funcs.py
code served (permissive licence) · get_code("e40738e766337909")
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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a simple model class that supports predict method
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, output_dim=2):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)
    
    def predict(self, X, **kwargs):
        if isinstance(X, np.ndarray):
            X = torch.from_numpy(X).float()
        with torch.no_grad():
            output = self.forward(X)
        return output.numpy()
    
    def predict_proba(self, X, **kwargs):
        if isinstance(X, np.ndarray):
            X = torch.from_numpy(X).float()
        with torch.no_grad():
            output = self.forward(X)
            proba = torch.softmax(output, dim=1)
        return proba.numpy()
    
    def transform(self, X, **kwargs):
        if isinstance(X, np.ndarray):
            X = torch.from_numpy(X).float()
        with torch.no_grad():
            output = self.forward(X)
        return output.numpy()

# Create input features (batch_size=2, features=4)
X = np.random.randn(2, 4).astype(np.float32)

# Create a single model
model_single = SimpleModel(input_dim=4, output_dim=3)

# Create multiple models for testing parallel execution
model_list = [
    SimpleModel(input_dim=4, output_dim=3),
    SimpleModel(input_dim=4, output_dim=3),
]

# Define ARGS
ARGS = {
    'X': X,
    'model': model_single,
    'n_samples': 1,
    'matrix': None,
    'parallel': True,
    'method': 'predict',
}
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
preprocess_code_block Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/npc_sysenv.py
code served (permissive licence) · get_code("1f56682cc0c1c17d")
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
import torch.nn as nn

# Construct code_text argument
code_text = """    def hello():
        print('world')
            x = 1
    return x"""

ARGS = {
    "code_text": code_text
}
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
score_model Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/ml_funcs.py
code served (permissive licence) · get_code("9a51adc831b11eac")
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 numpy as np
from sklearn.base import BaseEstimator, ClassifierMixin

class DummyModel(BaseEstimator, ClassifierMixin):
    """Minimal model that implements predict method."""
    def __init__(self):
        pass
    
    def fit(self, X, y):
        self.classes_ = np.unique(y)
        return self
    
    def predict(self, X):
        # Return random predictions matching number of samples
        return np.random.choice(self.classes_, size=X.shape[0])

# Create test data
np.random.seed(0)
X_test = np.random.randn(5, 4)  # 5 samples, 4 features
y_test = np.array([0, 1, 0, 1, 0])  # Binary classification targets

# Create and fit a model
model = DummyModel()
model.fit(X_test, y_test)

# Define arguments for score_model
ARGS = {
    'X': X_test,
    'y': y_test,
    'model': model,
    'metrics': ['accuracy', 'f1', 'precision', 'recall'],
    'parallel': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
skill_to_jinx Ran
ran on a synthesized input
npc-worldwide/npcpy/npcpy/convert.py
code served (permissive licence) · get_code("c18577e90b0f9d7c")
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 os
import tempfile
import shutil
from pathlib import Path

# Create a temporary directory structure to simulate a skill folder
temp_dir = tempfile.mkdtemp()

# Create a skill subdirectory
skill_dir = os.path.join(temp_dir, "test_skill")
os.makedirs(skill_dir, exist_ok=True)

# Create SKILL.md with frontmatter and content
skill_md_content = """---
name: test_skill
description: A test skill for conversion
---

# Test Skill

This is a test skill description.

## Inputs

- `param1` (default: `value1`)
- `param2` (default: `value2`)

## Steps

- `setup` → [`setup.py`](./setup.py)
- `process` → [`process.py`](./process.py)

## Output

Some output section.
"""

skill_md_path = os.path.join(skill_dir, "SKILL.md")
with open(skill_md_path, 'w', encoding='utf-8') as f:
    f.write(skill_md_content)

# Create step Python files
setup_py_content = """def setup():
    print("Setting up")
    return True
"""

process_py_content = """def process(data):
    print(f"Processing {data}")
    return data * 2
"""

with open(os.path.join(skill_dir, "setup.py"), 'w', encoding='utf-8') as f:
    f.write(setup_py_content)

with open(os.path.join(skill_dir, "process.py"), 'w', encoding='utf-8') as f:
    f.write(process_py_content)

# Create output directory
out_dir = os.path.join(temp_dir, "output")
os.makedirs(out_dir, exist_ok=True)

ARGS = {
    "skill_path": skill_dir,
    "out_dir": out_dir,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
build_server Not yet run
unverified (harvested, no recorded run)
npc-worldwide/npcpy/npcpy/mcp_server.py
code served (permissive licence) · get_code("5523f8e99c99b90e")
How it ran

no invocation recorded.

create_or_replace_table Not yet run
unverified (harvested, no recorded run)
npc-worldwide/npcpy/npcpy/npc_compiler.py
code served (permissive licence) · get_code("23123d55db2c128f")
How it ran

no invocation recorded.

ensemble_vote Not yet run
unverified (harvested, no recorded run)
npc-worldwide/npcpy/npcpy/npc_array.py
code served (permissive licence) · get_code("38245c4d32f43205")
How it ran

no invocation recorded.

fit_model Not yet run
unverified (harvested, no recorded run)
npc-worldwide/npcpy/npcpy/ml_funcs.py
code served (permissive licence) · get_code("f478d181a9352803")
How it ran

no invocation recorded.

infer_matrix Not yet run
unverified (harvested, no recorded run)
npc-worldwide/npcpy/npcpy/npc_array.py
code served (permissive licence) · get_code("04c0ca73d7e0c996")
How it ran

no invocation recorded.

npc_udf Not yet run
unverified (harvested, no recorded run)
npc-worldwide/npcpy/npcpy/npc_array.py
code served (permissive licence) · get_code("e45111481f74a143")
How it ran

no invocation recorded.

Also present in other papers' code

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

Semantic degeneracy represents a fundamental property of natural language that extends beyond simple polysemy to encompass the combinatorial explosion of potential interpretations that emerges as semantic expressions increase in complexity. In this work, we argue this property imposes fundamental limitations on Large Language Models (LLMs) and other modern NLP systems, precisely because they operate within natural language itself. Using Kolmogorov complexity, we demonstrate that as an expression's complexity grows, the amount of contextual information required to reliably resolve its ambiguity explodes combinatorially. The computational intractability of recovering a single intended meaning for complex or ambiguous text therefore suggests that the classical view that linguistic forms possess intrinsic meaning in and of themselves is conceptually inadequate. We argue instead that meaning is dynamically actualized through an observer-dependent interpretive act, a process whose non-deterministic nature is most appropriately described by a non-classical, quantum-like logic. To test this hypothesis, we conducted a semantic Bell inequality test using diverse LLM agents. Our experiments yielded average CHSH expectation values from 1.2 to 2.8, with several runs producing values (e.g., 2.3-2.4) in significant violation of the classical boundary ($|S|\leq2$), demonstrating that linguistic interpretation under ambiguity can exhibit non-classical contextuality, consistent with results from human cognition experiments. These results inherently imply that classical frequentist-based analytical approaches for natural language are necessarily lossy. Instead, we propose that Bayesian-style repeated sampling approaches can provide more practically useful and appropriate characterizations of linguistic meaning in context.

For agents

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

get_harvested_code_for_paper("2506.10077")
get_code_for_paper("2506.10077")
have("2506.10077")

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

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

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

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

Connect an agent — have() is free.