SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.12018 · NeurIPS · 2025

Atom of Thoughts for Markov LLM Test-Time Scaling

Chenglin Wu, Jiayi Zhang, Zhijiang Guo, Yuyu Luo, Fengwei Teng, Quan Shi, Zhaoyang Yu, Deepwisdom

arXiv · PDF · Open in the Atlas

Code that ran

14 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; 1 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 11 failures of our instrument; 4 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/2502.12018.json · badge: /api/ran/2502.12018.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
qixucen/atom marked official in Papers with Code
Papers with Code archive
11 ran · 3 no recorded run
FoundationAgents/MetaGPT community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
atom Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("77c2feabb768d13f")
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) and returned coroutine. 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 asyncio
from unittest.mock import Mock, AsyncMock, MagicMock
import json

torch.manual_seed(0)

# Mock OpenAI client and related setup
class MockOpenAIClient:
    async def chat(self):
        return self
    
    async def completions(self):
        return self
    
    async def create(self, **kwargs):
        mock_response = Mock()
        mock_response.choices = [Mock()]
        mock_response.choices[0].message = Mock()
        mock_response.choices[0].message.content = json.dumps({
            "sub-questions": [
                {"question": "What is X?", "depend": []},
                {"question": "What is Y?", "depend": [0]}
            ]
        })
        mock_response.usage = Mock()
        mock_response.usage.prompt_tokens = 10
        mock_response.usage.completion_tokens = 20
        return mock_response

# Setup global variables that the function expects
global call_count, cost, current_prompt_tokens, current_completion_tokens, model_name, clients, module, update_token

call_count = 0
cost = 0.0
current_prompt_tokens = 0
current_completion_tokens = 0
model_name = "gpt-4"
clients = [MockOpenAIClient()]
module = "multi-hop"

def update_token():
    global cost, current_prompt_tokens, current_completion_tokens
    cost += (current_prompt_tokens * 0.00003 + current_completion_tokens * 0.00006) / 1000

# Mock async functions that decompose calls
async def multistep(question, contexts=None):
    return {
        "sub-questions": [
            {"question": "Sub Q1", "depend": []},
            {"question": "Sub Q2", "depend": [0]}
        ],
        "response": "response text",
        "answer": "answer text"
    }

async def label(question, multistep_result, answer=None):
    return {
        "sub-questions": [
            {"question": "Sub Q1", "depend": []},
            {"question": "Sub Q2", "depend": [0]}
        ]
    }

# Construct valid arguments for the decompose function
ARGS = {
    "question": "What is the capital of France and its population?",
    "contexts": ["France is a country in Europe.", "Paris is the capital of France."]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
openai, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
calculate_depth Ran
ran, honoured the contract we drafted
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("7fe060314a6c8d94")
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.

# Setup code for calculate_depth function

# Construct a list of sub-questions with dependency information
sub_questions = [
    {
        'id': 0,
        'text': 'What is the capital of France?',
        'depend': []
    },
    {
        'id': 1,
        'text': 'What is the population of that city?',
        'depend': [0]
    },
    {
        'id': 2,
        'text': 'What are the major landmarks there?',
        'depend': [0]
    },
    {
        'id': 3,
        'text': 'How many people visit those landmarks annually?',
        'depend': [1, 2]
    }
]

ARGS = {
    'sub_questions': sub_questions
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
contract Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("09ce4a8d58836cd2")
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 coroutine. 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 asyncio
import random
from unittest.mock import Mock, AsyncMock, MagicMock

# Mock the openai module
class MockOpenAI:
    class RateLimitError(Exception):
        pass
    class APIError(Exception):
        pass

openai = MockOpenAI()

# Setup global variables
call_count = 0
cost = 0
current_prompt_tokens = 0
current_completion_tokens = 0
total_prompt_tokens = 0
total_completion_tokens = 0
model_name = 'gpt-4'

# Mock clients
mock_client = AsyncMock()
mock_response = Mock()
mock_response.choices = [Mock()]
mock_response.choices[0].message.content = '{"result": "success"}'
mock_response.usage = Mock()
mock_response.usage.prompt_tokens = 10
mock_response.usage.completion_tokens = 5

mock_client.chat.completions.create = AsyncMock(return_value=mock_response)
clients = [mock_client]

# Mock prompter
class MockPrompter:
    def contract(self, question, sub_result, independent_subqs, dependent_subqs, contexts=None):
        return f"Contract prompt: {question}"
    
    def check(self, func_name, result):
        return isinstance(result, dict) and 'response' in result

prompter = MockPrompter()
module = 'multi-hop'

# Setup ARGS for the contract function
ARGS = {
    'question': 'What is the capital of France?',
    'sub_result': {
        'sub1': 'Paris',
        'sub2': 'France'
    },
    'independent_subqs': [
        'What is France?',
        'What is a capital?'
    ],
    'dependent_subqs': [
        'Is Paris the capital?'
    ],
    'contexts': 'Paris is the capital of France located in northern France.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
direct Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("96ee42a86a1c19da")
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 coroutine. 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 asyncio
import json
from unittest.mock import Mock, AsyncMock, MagicMock
import openai

# Set up global variables that the function uses
global call_count, cost, current_prompt_tokens, current_completion_tokens, model_name
global total_prompt_tokens, total_completion_tokens, clients, module, prompter, count

call_count = 0
cost = 0
current_prompt_tokens = 0
current_completion_tokens = 0
total_prompt_tokens = 0
total_completion_tokens = 0
model_name = 'gpt-4'
count = 0

# Create mock clients
mock_client = AsyncMock()
mock_response = Mock()
mock_response.choices = [Mock()]
mock_response.choices[0].message = Mock()
mock_response.choices[0].message.content = '{"result": "test"}'
mock_response.usage = Mock()
mock_response.usage.prompt_tokens = 10
mock_response.usage.completion_tokens = 5

mock_client.chat.completions.create = AsyncMock(return_value=mock_response)
clients = [mock_client]

# Create a mock prompter object with required methods
class MockPrompter:
    def direct(self, question, contexts=None):
        return f"Prompt for question: {question}"
    
    def check(self, func_name, result):
        return True

prompter = MockPrompter()
module = None

# Define the arguments for the direct function
ARGS = {
    'question': 'What is the meaning of life?',
    'contexts': 'Philosophy and existentialism'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
ensemble Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("3ac893a0ca4c742c")
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 coroutine. 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 asyncio
import random
from unittest.mock import Mock, AsyncMock, MagicMock

# Set up global variables used by the function
global model_name, module, prompter, call_count, cost, current_prompt_tokens, current_completion_tokens
global total_prompt_tokens, total_completion_tokens, clients

model_name = "gpt-4"
module = "multi-hop"
call_count = 0
cost = 0
current_prompt_tokens = 0
current_completion_tokens = 0
total_prompt_tokens = 0
total_completion_tokens = 0

# Create mock clients
mock_client = AsyncMock()
mock_response = Mock()
mock_response.choices = [Mock()]
mock_response.choices[0].message = Mock()
mock_response.choices[0].message.content = '{"answer": "test", "confidence": 0.95}'
mock_response.usage = Mock()
mock_response.usage.prompt_tokens = 10
mock_response.usage.completion_tokens = 20

mock_client.chat.completions.create = AsyncMock(return_value=mock_response)
clients = [mock_client]

# Create a mock prompter
class MockPrompter:
    def ensemble(self, question, results, contexts=None):
        return f"Ensemble prompt for: {question}"
    
    def check(self, func_name, result):
        # Always return True to pass validation
        return True

prompter = MockPrompter()

# Define the arguments for the ensemble function
ARGS = {
    "question": "What is the capital of France?",
    "results": [
        {"answer": "Paris", "score": 0.95},
        {"answer": "Lyon", "score": 0.05}
    ],
    "contexts": "France is a country in Europe. The capital is Paris."
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
extract_json Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("41aebb57ad1d527d")
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 string

def extract_json(string):
    try:
        string = string.strip()
        start, end = (string.find('{'), string.rfind('}'))
        if start != -1 and end != -1:
            string = string[start:end + 1]
        json_data = json.loads(string)
        return json_data
    except Exception as e:
        return str(e)

# Setup: The function takes a single parameter 'string' which should be a string
# It attempts to find and parse JSON from within that string
# We'll create test cases that demonstrate different scenarios

test_string_1 = '{"key": "value", "number": 42}'
test_string_2 = 'Some text before {"name": "Alice", "age": 30} and text after'
test_string_3 = '   {"nested": {"data": true}}   '
test_string_4 = 'invalid json {not valid}'

ARGS = {
    'string': test_string_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
extract_xml Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("c595f2077647c5a2")
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 re
import string

# The function extract_xml takes a single parameter: string
# It attempts to parse XML-like tags from the input string
# and extract their content as integers, floats, or strings

# Test case 1: Basic XML with mixed content types
test_string_1 = '<tag>value</tag><number>42</number><float>3.14</float>'

# Test case 2: XML with hyphens in tag names
test_string_2 = '<my-tag>hello world</my-tag><another-tag>123</another-tag>'

# Test case 3: XML with nested whitespace
test_string_3 = '  <result>  content  </result>  '

# Test case 4: Empty string
test_string_4 = ''

# Test case 5: String with no XML tags
test_string_5 = 'plain text without tags'

# Test case 6: Complex XML example
test_string_6 = '<id>999</id><name>test</name><score>98.5</score><status>active</status>'

ARGS = {
    'string': test_string_6
}
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
gen Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("d649ba329da48188")
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 coroutine. 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 asyncio
import json
from unittest.mock import AsyncMock, MagicMock, patch
import openai

# Mock OpenAI client
class MockOpenAIClient:
    async def chat(self):
        return self
    
    async def completions(self):
        return self
    
    async def create(self, model=None, messages=None, temperature=None, stop=None, max_tokens=None, response_format=None):
        # Mock response object
        usage = MagicMock()
        usage.prompt_tokens = 10
        usage.completion_tokens = 20
        
        message = MagicMock()
        message.content = json.dumps({"result": "test", "value": 42})
        
        choice = MagicMock()
        choice.message = message
        
        response = MagicMock()
        response.choices = [choice]
        response.usage = usage
        
        return response

# Set up global variables
msg = "Test message for the API"
model = "gpt-4"
temperature = 0.7
response_format = "json_object"

# Create a mock client that supports async context
async_client = AsyncMock()
mock_response = MagicMock()
mock_response.choices = [MagicMock()]
mock_response.choices[0].message.content = json.dumps({"result": "success"})
mock_response.usage.prompt_tokens = 15
mock_response.usage.completion_tokens = 25
async_client.chat.completions.create = AsyncMock(return_value=mock_response)

# Define ARGS
ARGS = {
    'msg': "What is the capital of France?",
    'model': "gpt-4",
    'temperature': 0.7,
    'response_format': 'json_object'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
get_human_input Ran
ran on a synthesized input
FoundationAgents/MetaGPT/metagpt/logs.py
code served (permissive licence) · get_code("f18519f9e318eab6")
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 coroutine. 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 asyncio

ARGS = {
    'prompt': 'Enter your input: '
}
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 coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
is_func Ran
ran, violated the contract we drafted
FoundationAgents/MetaGPT/metagpt/repo_parser.py
pointer only (licence: MIT); the stored copy get_code serves, from bingreeky/MaAS, is pointer only (licence: NONE) · get_code("84e834cc9e6e17da")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from bingreeky/MaAS, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

label Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("9d1aae91057e5fd6")
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 coroutine. 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 asyncio
import json
from unittest.mock import Mock, AsyncMock, MagicMock
import openai

# Setup global variables that the function uses
global call_count, cost, current_prompt_tokens, current_completion_tokens, model_name
global total_prompt_tokens, total_completion_tokens
global clients, module, prompter, MAX_RETRIES

call_count = 0
cost = 0
current_prompt_tokens = 0
current_completion_tokens = 0
total_prompt_tokens = 0
total_completion_tokens = 0
model_name = 'gpt-4'
MAX_RETRIES = 3

# Create mock clients
mock_client = AsyncMock()
mock_response = Mock()
mock_response.choices = [Mock()]
mock_response.choices[0].message.content = '{"label": "valid", "confidence": 0.95}'
mock_response.usage = Mock()
mock_response.usage.prompt_tokens = 10
mock_response.usage.completion_tokens = 5

mock_client.chat.completions.create = AsyncMock(return_value=mock_response)
clients = [mock_client]

# Create mock prompter
class MockPrompter:
    def label(self, question: str, sub_questions: str, answer: str = None):
        return f"Label this: {question} with sub_questions: {sub_questions} and answer: {answer}"
    
    def check(self, func_name: str, result):
        # Always return True to pass the check
        if isinstance(result, dict) and 'label' in result:
            return True
        return False

prompter = MockPrompter()
module = 'multi-hop'

ARGS = {
    'question': 'What is the capital of France?',
    'sub_questions': 'What country? What is its capital?',
    'answer': 'Paris'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
merge_dict Ran
ran; our contract draft was wrong, not the code
FoundationAgents/MetaGPT/metagpt/config2.py
pointer only (licence: MIT); the stored copy get_code serves, from bingreeky/MaAS, is pointer only (licence: NONE) · get_code("b2eab098d73493e2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from bingreeky/MaAS, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merging Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("fa2ac22bb5dd6381")
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 coroutine. 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 asyncio
import json
from unittest.mock import AsyncMock, MagicMock, patch

# Setup global variables that the function uses
call_count = 0
cost = 0
current_prompt_tokens = 0
current_completion_tokens = 0
total_prompt_tokens = 0
total_completion_tokens = 0
model_name = 'gpt-4'
count = 0

# Create a mock prompter class with required methods
class MockPrompter:
    def contract(self, question, sub_result, independent_subqs, dependent_subqs, contexts=None):
        return f"Contract prompt for: {question}"
    
    def direct(self, question, contexts=None):
        return f"Direct prompt for: {question}"
    
    def check(self, func_name, result):
        # Always return True to pass validation
        return True

# Create a mock client
class MockClient:
    async def chat(self):
        pass

mock_client = MagicMock()
mock_response = MagicMock()
mock_response.choices = [MagicMock()]
mock_response.choices[0].message.content = '{"result": "test"}'
mock_response.usage = MagicMock()
mock_response.usage.prompt_tokens = 10
mock_response.usage.completion_tokens = 20

mock_client.chat.completions.create = AsyncMock(return_value=mock_response)

# Setup global state
prompter = MockPrompter()
module = 'multi-hop'
clients = [mock_client]

# Define the arguments for the merging function
ARGS = {
    'question': 'What is the capital of France and its population?',
    'decompose_result': {
        'capital': 'Paris',
        'population': '2.161 million'
    },
    'independent_subqs': [
        'What is the capital of France?',
        'What is the population of France?'
    ],
    'dependent_subqs': [],
    'contexts': 'France is a country in Western Europe.',
    'kwargs': {
        'contexts': 'France is a country in Western Europe.'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
multistep Ran
ran; our contract draft was wrong, not the code
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("1f4ab7708b6e94f9")
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 coroutine. 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 asyncio
import json
from unittest.mock import Mock, AsyncMock, MagicMock
import random

# Global variables that the function uses
call_count = 0
cost = 0
current_prompt_tokens = 0
current_completion_tokens = 0
total_prompt_tokens = 0
total_completion_tokens = 0
model_name = 'gpt-4'
module = 'multi-hop'
prompter = None
clients = []

# Mock OpenAI client
mock_client = AsyncMock()
mock_response = Mock()
mock_response.choices = [Mock()]
mock_response.choices[0].message = Mock()
mock_response.choices[0].message.content = '{"reasoning": "test"}'
mock_response.usage = Mock()
mock_response.usage.prompt_tokens = 10
mock_response.usage.completion_tokens = 20

mock_client.chat.completions.create = AsyncMock(return_value=mock_response)
clients = [mock_client]

# Create a minimal prompter mock
class MockPrompter:
    def multistep(self, question: str, contexts: str = None):
        return f"Question: {question}, Contexts: {contexts}"
    
    def check(self, func_name: str, result):
        return True

prompter = MockPrompter()

# Define arguments for multistep function
ARGS = {
    'question': 'What is the capital of France?',
    'contexts': 'France is a country in Europe. Paris is the largest city.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
decompose Not yet run
unverified (harvested, no recorded run)
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("2b8187ac5aea3e87")
How it ran

no invocation recorded.

generate_repo Not yet run
unverified (harvested, no recorded run)
FoundationAgents/MetaGPT/metagpt/software_company.py
code served (permissive licence) · get_code("bf1e2b866517454b")
How it ran

no invocation recorded.

retry Not yet run
unverified (harvested, no recorded run)
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("f49f801f19a5d28d")
How it ran

no invocation recorded.

update_token Not yet run
unverified (harvested, no recorded run)
qixucen/atom/experiment/module.py
code served (permissive licence) · get_code("75b0c5d6a4c33431")
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, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 16 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.

FunctionAlso present inEarliest-datedOthers named
is_func 1 other paper
1 later
2605.09907 (2026-05)
RADAR: Redundancy-Aware Diffusion for Multi-Agent Communication Structure Generation
merge_dict 1 other paper
1 later
2605.09907 (2026-05)
RADAR: Redundancy-Aware Diffusion for Multi-Agent Communication Structure Generation

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

Large Language Models (LLMs) have achieved significant performance gains through test-time scaling methods. However, existing approaches often incur redundant computations due to the accumulation of historical dependency information during inference. To address this challenge, we leverage the memoryless property of Markov processes to minimize reliance on historical context and propose a Markovian reasoning process. This foundational Markov chain structure enables seamless integration with various test-time scaling methods, thereby improving their scaling efficiency. By further scaling up the Markovian reasoning chain through integration with techniques such as tree search and reflective refinement, we uncover an emergent atomic reasoning structure, where reasoning trajectories are decomposed into a series of self-contained, low-complexity atomic units. We name this design Atom of Thoughts (AOT). Extensive experiments demonstrate that AOT consistently outperforms existing baselines as computational budgets increase. Importantly, AOT integrates seamlessly with existing reasoning frameworks and different LLMs (both reasoning and non-reasoning), facilitating scalable, high-performance inference.We submit our code alongside this paper and will make it publicly available to facilitate reproducibility and future research.

For agents

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

get_harvested_code_for_paper("2502.12018")
get_code_for_paper("2502.12018")
have("2502.12018")

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

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

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

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

Connect an agent — have() is free.